[SOLVED]Invalid format of GUID string. Dynamics CRM Integration of Products

Tomigs
Member Posts: 88
Hi all,
Since some time now, our automatic integration between NAV (2016) and CRM (native integration) is not working properly. It syncs the CRM Products with the NAV Items.
We have it automated through a job queue, and we get the following error after around 40 hours of processing:
Invalid format of GUID string. The correct format of the GUID string is:
CDEF7890-ABCD-0123-1234-567890ABCDEF
where 0-9, A-F symbolizes hexadecimal digits.
It does not leave any clue on what product/item no is erroring, and the debugger does not stop either.
My guess is that there is a GUID field in some of the tables related to the CRM Products (could be in the CRM UOM, CRM Productpricelevel, in the CRM Products itself...) that has wrong data on it.
Any clue on how can I identify what is the product causing the error?
I have tried transferring all the GUID fields from the CRM Product table to table, just to test it, but all seem to be transferred ok.
Thanks,
Tomas
Since some time now, our automatic integration between NAV (2016) and CRM (native integration) is not working properly. It syncs the CRM Products with the NAV Items.
We have it automated through a job queue, and we get the following error after around 40 hours of processing:
Invalid format of GUID string. The correct format of the GUID string is:
CDEF7890-ABCD-0123-1234-567890ABCDEF
where 0-9, A-F symbolizes hexadecimal digits.
It does not leave any clue on what product/item no is erroring, and the debugger does not stop either.
My guess is that there is a GUID field in some of the tables related to the CRM Products (could be in the CRM UOM, CRM Productpricelevel, in the CRM Products itself...) that has wrong data on it.
Any clue on how can I identify what is the product causing the error?
I have tried transferring all the GUID fields from the CRM Product table to table, just to test it, but all seem to be transferred ok.
Thanks,
Tomas
0
Comments
-
Hi all,
Finally, we identified through the job synch error log that there were other problems underneath. After resolving those and restarting the Service, the automatic sync of ítems is working fne again.
The errors were:
• "The length of the string is 22, but it must be less than or equal to 20 characters. Value: 90visgv12 + nut 17 m12"
• "The specified product ID conflicts with the product ID of an existing record. Specify a differe"
Fort he first error, we had what we believe is a bug with a mod from our side that made it worse.
So we modified the “Vendor Item No.” Field in the table 27 Item to be Text40 instead of Text20. And all the related tables.
But this originated a size conflict in Codeunit 5342 “CRM Synch. Helper” - function UpdateCRMProductVendorName:
It compares the Vendor Code (code20) with the Vendor Item No (text40 now) (note it is vendorPartNumber in CRM). So we created a conflict when the Vendor Item No. Is longer than 20 characters. Anyway, I think that the comparison is not correct, although we can be wrong of course.
Codeunit 5342 “CRM Synch. Helper” - function UpdateCRMProductVendorName://+++++ //I believe this is a bug //IF NOT Vendor.GET(CRMProduct.VendorPartNumber) THEN IF NOT Vendor.GET(CRMProduct.VendorID) THEN //------ EXIT(FALSE); IF CRMProduct.VendorName <> Vendor.Name THEN BEGIN CRMProduct.VendorName := Vendor.Name; EXIT(TRUE); END; EXIT(FALSE);
Fort he second error, not sure what happened. We identified the product that was causing it, synchronized it manually and worked fine. Maybe we resolved the issue in another way during this time.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions