Document type issue on Importing PO's

kamranshehzad
Member Posts: 165
Hi I am getting document type issue on importing the documents
it says idnetification fields and values
Document type ='Quote', No.= '104800'
if i dont specify document type in xml, it brings it as quote and if i specify it , then it gives error.
Any idea?
regards,
it says idnetification fields and values
Document type ='Quote', No.= '104800'
if i dont specify document type in xml, it brings it as quote and if i specify it , then it gives error.
Any idea?
regards,
KS
0
Answers
-
You can set a filter on the right document type in the table element, which will set it for you when importing records. Make sure that you include the document type as one of the linked fields in the line table element.0
-
Ill try this.
Also If you can guide me how can I get the next sequence no ( po / pi ) if i dont want to use manual numbers?
regards,KS0 -
Setting up filter property didn't work on XML Port.
I specified ReqFilterFields = Document Type
and ReqFilterHeading = Order
for both table elements in XMLPORT.
The xml seems fine and I dont see a reason why is it doing so.
I am specifying the document type for header n lines and there is link in xml port too.
please advise.
regards,KS0 -
I didn't mean setting up req. filter fields for the request form. I meant set up a filter on the field in the table element, in the SourceTableView property.
If your incoming XML doesn't have an order number you're going to have to program access to the numbering series yourself, whether you want to or not is not relevant. What I usually do is import into temp records and program the creation of the order in the OnPostXMLPort trigger. I guess I'm just not very good at XMLPorts and that's the only way I can have total control over what is imported and how it is imported.
0 -
thanks that worked. I am new to navision thats why coming across these basic things.
I just wanted to use automated number as it will be useful during the po transfers from our other system to navision..
Ill see what can be done.
regards,KS0 -
A strange thing is happening now. I am importing the same PO using a codeunit exposed as webservice but it started giving me same error again.
idnetification fields and values
Document type ='Quote', No.= '104800'
any idea why is MISBEHAVING when it is exposed as webservice?ImportNewPO ( xmlData : bigtext) status : boolean IF XmlData.LENGTH > 0 THEN BEGIN CLEAR(TmpRecord); // clear temp record TmpRecord.Blob.CREATEOUTSTREAM(XmlOutStream); // create output stream for temp record XmlData.WRITE(XmlOutStream); // write into temp record TmpRecord.Blob.CREATEINSTREAM(XmlInStream); // read from temp record XMLPORT.IMPORT(123456754,XmlInStream); // import into system using xmlport CLEAR(TmpRecord); // clear the temp record Status := TRUE; // return true END
regards,KS0 -
What do you mean "misbehaving"? Things generally behave exactly the way that they are programmed. What exactly is the full error message?0
-
idnetification fields and values
Document type ='Quote', No.= '104800'
this is the same thing that i was getting instart and then i set up the filter on field SourceTableView and reading from file was fine. Now I am getting a stream in (the code is in previous post) and its throwing the same error.
any idea?
regards,KS0 -
Done it my stupidity. I was not linking SourceTableView links for doucment type as well. its working now. great.
What I meant by misbehaving that it was not working for me. so i was just kidding about it.
thanks.KS0 -
I am happy to hear that you solved the issue. One thing though. The error message that you posted:kamranshehzad wrote:idnetification fields and values
Document type ='Quote', No.= '104800'0 -
Thanks. Thanks for clarifying that its not a error message.
I wasn't able to copy paste it as I was getting it in my .net based test application.
thanks for your help. You guys are doing a great job.
regards,KS0
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