CHANGECOMPANY not working when processing IC Outbox

dashenk23
Member Posts: 40
I am working with the Intercompany module and have two companies setup along with the corresponding IC Partners in both companies and also selected the related company name on all IC Partner records. The IC information is also setup in the company information for both companies. We ran a test and created/posted a purchase invoice and the g/l entries were created correctly and the document was put in the IC Outbox. The problem happens when trying to process the Outbox entry, the code is erroring in CU 427 ICInboxOutboxMgt on the line following the CHANGECOMPANY line. The error is saying that the IC Partner does not exist...even though it is in that company.
PartnerICPartner.CHANGECOMPANY(LocalICPartner."Inbox Details");
PartnerICPartner.GET(ICInboxJnlLine."IC Partner Code");
When I debugged the issue the LocalICParter record has the correct company name in the Inbox Details, and the IC Partner Code from the ICInboxJnlLine does exist in the company being changed to, so I'm wondering why it is not finding it...it almost seems as if the CHANGECOMPANY command is not working...
The version is NAV 2009 R2 and there are no modifications, the issue happens in both the Classic Client and RTC. Any thoughts or suggestions would be appreciated.
Thanks!
PartnerICPartner.CHANGECOMPANY(LocalICPartner."Inbox Details");
PartnerICPartner.GET(ICInboxJnlLine."IC Partner Code");
When I debugged the issue the LocalICParter record has the correct company name in the Inbox Details, and the IC Partner Code from the ICInboxJnlLine does exist in the company being changed to, so I'm wondering why it is not finding it...it almost seems as if the CHANGECOMPANY command is not working...
The version is NAV 2009 R2 and there are no modifications, the issue happens in both the Classic Client and RTC. Any thoughts or suggestions would be appreciated.
Thanks!
0
Comments
-
Are you using SQL? Try to use SQL Profiler or client monitor to see which SQL command is executed... Have the client enough permissions for the target company?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