Trouble sending messages to Dynamics AX: Element is not declared.

I'm having problems getting Dynamics AX to accept a message from BizTalk.
Here's my setup:
AX 2012:
A table, BTAIF_test, with two fields ("Name" and "Phone").
A query, BTAIFQuery, with BTAIF_test as datasource.
A service, BTAIFQueryService, autogenerated by the AX AIF Wizard, registered and deployed on
An inbound port, BTAIF, using net.tcp.
BizTalk:
An incoming schema, generated from a simple XML file containing a name and a phone number.
An outgoing schema, generated by the Consume WCF Service wizard.
A map, mapping the two value fields from the incoming to the outgoing schema.
A receive port, using a receive location with FILE transport to pick up the incoming message, and using XMLReceive pipeline
A send port, using the previously mentioned map, and WCF-NetTcp configured with my AX service address and a simple soap header pointing at the create method of the service. It uses the XMLTransmit pipeline.
When I drop a message in the receive location I get the following message in the Exception log of AX:
"Invalid document schema. The following error was returned:  
The 'http://schemas.microsoft.com/dynamics/2008/01/documents/BTAIFQuery:BTAIFtest_1' element is not declared."
The send port has a backup FILE transport, and this is what the message looks like when it dumps it there:
<?xml version="1.0" encoding="utf-8"?>
<ns0:BTAIFQuery xmlns:ns0="http://schemas.microsoft.com/dynamics/2008/01/documents/BTAIFQuery"
xmlns:st="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">
<ns0:BTAIFtest_1 class="entity">
<ns0:Name>John Hancock</ns0:Name>
<ns0:Phone>555-123-4567</ns0:Phone>
</ns0:BTAIFtest_1>
</ns0:BTAIFQuery>
Any pointers as to what I'm doing wrong here? I've been searching for information on the net and either nobody's doing this or it's so easy nobody cares to write about it. I'm hoping it's the latter and I'm just making some stupid mistake.

From the above output I think the AxdExtType_Name, AxdExtType_Phone and AxdEnum_AxdEntityAction are defined as simple type in BTAIF_schemas_microsoft_com_dynamics_2008_01_sharedtypes.xsd, so the above output is correct as per this schema. Recheck if the
format of schema is correct so that AX can accept it.
Yes, they're defined as simple types, here's the relevant definitions from sharedtypes.xsd:
<xs:simpleType name="AxdExtType_Name">
<xs:annotation>
<xs:documentation xml:lang="EN-US">Name:Name.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="0" />
<xs:maxLength value="60" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AxdExtType_Phone">
<xs:annotation>
<xs:documentation xml:lang="EN-US">Telephone:Telephone number.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="0" />
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AxdEnum_AxdEntityAction">
<xs:annotation>
<xs:documentation xml:lang="EN-US">AxdEntityAction:AxdEntityAction</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="create" />
<xs:enumeration value="update" />
<xs:enumeration value="replace" />
<xs:enumeration value="delete" />
</xs:restriction>
</xs:simpleType>
This schema and the destination schemas are auto-generated by BizTalk's Consume WCF Service
wizard.

Similar Messages

  • Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages.  I've deleted around 10 huge conversations, rebooted it, resto

    Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages. 
    I've deleted around 10 huge conversations, rebooted it, restored it, done a soft and hard reset too. What should i do?

    my boyfriend restored his iphone as a brand new phone and still had this problem, he deleted all his text conversations except mine and his best friend's conversations still nothing, i told him to delete OUR conversation since its a 2 year conversation that he has NEVER deleted ..... he said YES!! we tried to delete it and the phone freezes as soon as we click on the CLEAR CONVERSATION button!!!! we tried about 5 times and this happened everytime we tried!!!! ....is like the phone doesnt wanna let go of our conversation!!! every other conversation he deleted the phone was fine except for when we try and delete ours!!
    so yesterday he left his phone alone around 4 pm since we have the apple appointment today at 130pm.......around 11 pm last night his phone went NUTS receiving all the text messages i had sent and never received!!!! and now the phone works just fine!!! ...... CONFUSED?????? yeah we are too!!!
    but we're still going to the apple store to see what they can tell us!!!

  • I'm Having Trouble Sending Messages Over IMessage.

    Okay, so I have a 4th generation ipod touch that I'm having trouble sending messages on. It's up to date on 6.0.1. It's also brand new. I only got it 3 days ago, but nevertheless i'm already having problems with imessage not sending messages. The odd thing is it only won't send messages at 12:00/1:00 am- about 10:00 am. The rest of the time I have no problems with it. Also, I should add that I live in an area that does not have high-speed internet but I get it over satillite. So my internet speed is not the best. But I didn't have this problem with my old ipod that I used a day prior to using this one. Any help is greatly appreciated! Thank you.

    iOS: Troubleshooting Messages
    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • Since installing IOS 7.03, I have trouble sending messages now.Starts sending but never completes.

    Since installing IOS 7.03, I have trouble sending messages now.
    Starts sending but never completes.
    Anyone have any solutions?

    Addendum
    Sending straight from the mail client in any/all of the Yahoo accounts works just fine. The bug just seems to happen when sending links from Safari.

  • Element is not declared error both in BizTalk 2013 and AX 2012 R2

    Hi:
    We continue getting “element is not declared” in BizTalk and AX.
    Appreciate any help and hints.
    Regards, Toraj
    Background:
    We have BizTalk 2013 and AX2012 R2.
    From BizTalk Suspended Job
    System.ServiceModel.FaultException: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action
    s:mustUnderstand="1">http://schemas.microsoft.com/dynamics/2008/01/services/PurchaseInvoiceService/createAifFaultFault</a:Action><a:RelatesTo>urn:uuid:ddd18935-18a7-415d-bbbf-38e4b9a08bf7</a:RelatesTo><a:To s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</a:To></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value></s:Code><s:Reason>
    <s:Text xml:lang="en-US">Invalid document schema. The following error was returned: 
    The 'http://schemas.microsoft.com/dynamics/2008/01/documents/PurchaseInvoice:LedgerJournalTable' element is not declared.</s:Text>
    </s:Reason><s:Detail><AifFault xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Fault"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><CustomDetailXml i:nil="true"></CustomDetailXml><FaultMessageListArray i:nil="true"></FaultMessageListArray><InfologMessageList
    From AX Exception Log
    The 'http://schemas.microsoft.com/dynamics/2008/01/documents/PurchaseInvoice:LedgerJournalTable' element is not declared.
    The BizTalk WCF-NetTcp > Configuration > Action as follows. Which matches the published WSDL
    <BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Operation Name="create" Action="http://schemas.microsoft.com/dynamics/2008/01/services/PurchaseInvoiceService/create" />
    </BtsActionMapping>
    The following is the XML from BizTalk to AX. I deleted some of the data to shorten the xml.
    <ns1:PurchaseInvoice xmlns:ns1="http://schemas.microsoft.com/dynamics/2008/01/documents/PurchaseInvoice" xmlns:ns0="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">
    <ns1:LedgerJournalTable action="create">
    <ns1:_DocumentHash>45f5770e-0ee5-496c-a290-176a16e78b7c</ns1:_DocumentHash>
    <ns1:Approver>0</ns1:Approver>
    <ns1:BankAccountId>0</ns1:BankAccountId>
    <ns1:BankRemittanceType>None</ns1:BankRemittanceType>
    <ns1:CurrencyCode>USD</ns1:CurrencyCode>
    <ns1:CurrentOperationsTax>Current</ns1:CurrentOperationsTax>
    <ns1:CustVendNegInstProtestProcess>OpenPaym</ns1:CustVendNegInstProtestProcess>
    <ns1:DefaultDimension>
    <ns0:Values><ns0:Value>
    <ns0:Name></ns0:Name>
    <ns0:Value>0</ns0:Value>
    </ns0:Value></ns0:Values>
    </ns1:DefaultDimension>
    <ns1:DetailSummaryPosting>Detail</ns1:DetailSummaryPosting>
    <ns1:DocumentNum>P049368</ns1:DocumentNum>
    <ns1:EndBalance>0.00</ns1:EndBalance>
    <ns1:ExchRate>0.00</ns1:ExchRate>
    <ns1:ExchrateSecondary>0.00</ns1:ExchrateSecondary>
    <ns1:FixedExchRate>Yes</ns1:FixedExchRate>
    <ns1:FixedOffsetAccount>Yes</ns1:FixedOffsetAccount>
    <ns1:GroupBlockId>
    </ns1:GroupBlockId>
    <ns1:InUseBy></ns1:InUseBy>
    <ns1:JournalBalance>1573.91</ns1:JournalBalance>
    <ns1:JournalName>APINV</ns1:JournalName><ns1:JournalTotalDebit>1573.91</ns1:JournalTotalDebit>
    <ns1:LedgerJournalTrans>
    <ns1:CurrencyCode>... LedgerJournalTrans Deleted for Simplicitsy </ns1:CurrencyCode>
    </ns1:LedgerJournalTrans>
    <ns1:DocuRefTable />
    <ns1:LedgerJournalTable_W />
    </ns1:LedgerJournalTable>
    </ns1:PurchaseInvoice>
    Toraj [email protected]

    Hi:
    After working on this off and on for a few weeks,
    I just posted the following Technical Blog / article for solution. Happy reading.
    BizTalk 2013 and AX2012 R2 Receive Services Interface -
    http://torajkhavari.blogspot.com/2015/01/title-biztalk2013-and-ax2012-r2-receive.html
    Regards,Toraj
    Toraj [email protected]

  • I'm getting a 'The Management Pack element is not declared' error when trying to import CSV data into my *extended* WindowsComputer class

    Background:
    I have a class called SUS_WindowsComputerMP, that is an extension of the Microsoft class, Microsoft.Windows.Computer
    I'm trying to import CSV data into this extended class and to the base class as well.
    Question:
    What am I doing wrong? I have a feeling that the Import CSV Format file is different for importing data into *extended* classes like mine, because the XML structure below would work for non-extended classes.
    "...Creating new CSVImporter
    Data Filename: D:\Peter\CMDB II\Exported MPs\TestMPs\SUS_WindowsComputer.csv
    Format Filename: D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml
    Validating against XSD schema...
    The 'ManagementPack' element is not declared.
    Validation completed.
    Format file D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml contains an invalid root element. Expected: root node with name \"CSVImportFormat\"
    Could not initialize a Management Object Creator from format file D:\Peter\CMDB II\Exported MPs\SUS_WindowsComputerMP.xml. Import thread exiting.
    My import format XML is this:
    <CSVImportFormat>
    <Class Type="ClassExtension_a3ae3e0f_d578_43dc_aa3e_9037a094763c" >
    <Property ID="WindowsServerID" />
    <Property ID="PrincipalName" />
    <Property ID="NetbiosComputerName" />
    <Property ID="IPAddress" />
    <Property ID="NetbiosDomainName" />
    <Property ID="DNSName" />
    <Property ID="OSVersionDisplayName" />
    <Property ID="SerialNo" />
    <Property ID="ServerDescription" />
    <Property ID="AssetTagNo" />
    <Property ID="ServerNameRow" />
    <Property ID="ChassisType" />
    <Property ID="InstallDate" />
    <Property ID="IsVirtualMachine" />
    <Property ID="BusinessUnitCustomersEnum" />
    <Property ID="RegionLocationEnum" />
    <Property ID="OtherFunctionRoleEnum" />
    <Property ID="ProductTypeEnum" />
    <Property ID="ObjectStatus" />
    <Property ID="AssetStatus" />
    <Property ID="CriticalityEnum" />
    <Property ID="EnvironmentEnum" />
    <Property ID="CostCodeClassEnum" />
    <Property ID="DataClassificationEnum" />
    <Property ID="Manufacturer" />
    </Class>
    </CSVImportFormat>

    Hello,
    Can anyone please help me out with this weird issue.
    thanks,
    orton

  • Trouble sending messages

    I have an email address through godaddy.com. I set up the account in Mail exactly as they prescribe. I'm able to receive messages no problem and sometimes I can send messages. However, I often get an error message saying "Cannot send message using the server smtpout.secureserver.net. Use the pop-up menu below to try a different outgoing mail server." I pick another server and this doesn't help. I change the server ports (godaddy says to use 25, 80, or 3535) and this seems to work temporarily, but I always go back to having problems sending emails.
    I talked to godaddy and we reviewed settings and everything is set up properly. In fact, I have another godaddy email account that I access through an Entourage browser and I never, ever have problems with it. So it does appear to be something with Mail. Thoughts?
    Thank you for your help!

    I, too, have Godaddy as my email host, but I only use the secureserver.net server when I'm not at home. My home ISP is Wildblue (satellite broadband), and I use their outgoing mail server. In fact, I don't think I can send anything out the godaddy secureserver here either. I think my isp has some incompatibility with that method, and I'd assume yours does as well. Try your isp's outgoing server setting.

  • Having trouble sending messages in the message app provided by Apple

    I have the IPad air and when ever I try to send a message in the message app it says your message can not be delivered, there's nothing wrong with my WI-FI Because it has 3 full bars so what am I suppose to do I can't even send messages to anybody. Can anyone help me??

    iMessage will only send messages between other Apple iOS devices.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I got the newest iPod touch and it has a message cube thing like on an iPhone and when I try to send messages to my friends it will not let me. I thought it would need wifi so I tried it with that and it still doesn't work. Will someone please help me?

    I got the newest iPod and it has a messaging cube like on the iPhone and it will not let me send messages to my friends even with wifi. Please help me with my problem.

    Is your device recognized by your computer? If yes, copy the pictures and videos as shown in this article:
    Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer
    If it is not recognized, try this first: iOS: Device not recognized in iTunes for Windows
    Disable autosync in iTunes, right click on it in the device list and choose "transfer purchases" to copy apps and other media bought in iTunes to your new library.
    Do the same again and choose "backup", to create a manual backup without syncing.
    Since your device will be erased due to the new iTunes library during the first sync, you can use this backup afterwards to restore your settings and data.
    Set up at least one contact and event on your computer before you start, to be able to merge calendars and contacts.

  • When opening XHTML page, getting error message "Attribute ....space not declared for element 'pre' "

    Hi all,
    We are trying to use XHTML to author some of our documentation.  The plan is to use FrameMaker to convert the docs to PDF format.
    The input file contains the following offending line:
    <pre xml:space="preserve">
    This should be allowed according to the www.w3.org/1998/xhtml spec.
    The actual FM log message is:
    Message: Attribute '{http://www.w3.org/XML/1998/namespace}space' is not declared for element 'pre'
    Any hints?  I am using Frame Maker 9, by the way.
    Thanks,
    Frances

    In case anyone is interested the base solution given by dvohra09 can be expanded to solve the problems.
    (1) It appears the parser raises errors against any unknown attributes, including xmlns:xxx="...". Solution is either to declare them in the dtd element you would like them to appear in (as in answer from dvohra09 ).
    (2) You have to explicitly force the tags in the DTD into the correct namespace using prefixs to ensure the correct ones are picked up , e.g.:
       <!ELEMENT nstag:mytag (mysubtag+)>
       <!ATTLIST nstag:mytag   xmlns:nstag CDATA #FIXED  "http://www.someOtherURI.com/xxx">
    you then have to refer to the tag as <nstag:mytag>.
    This doesn't appear to be how the XML/namespace specs (or the slideshow example) say it should be. They imply (1) should silently declare the new namespace prefix, and (2) should work without prefixes because the DTD filename is used as an explicit namespace.

  • I want to send messages using my iPad Air  but not as iMessages

    I Don't want to use iMessages but do want to be able to send messages (they can stay green) because I sometimes want to do the message but not to another apple user. I am unable to send any messages using the text bubble icon, or receive them to look back at them, except on my phone. Do I need to sync those somehow or changes settings. I have disabled "iMessage" in my settings! I could do this for a while but have had several changes since then trying to get my iPad to be what I need it for.

    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • Apple Mail trouble sending messages

    I added my Slippery Rock University account to the apple mail server and all of my messages showed up, but when I try to send an email it says there is something wrong with the server and it will not send. How can I fix this?
    All of the information I needed was right here: http://www.sru.edu/academics/iats/SupportServices/RSCHD/Documents/RockMailConfig .pdf
    Did I do something wrong?

    1)  In the Menu bar under Window select Connection Doctor.
    Do you see red lights? If yes, most likely you need to enter your passwords.
    If you see all green lights your connections are good.
    You can also open the Activity window under Window to see the messages as they download.
    2) Create a Smart folder. Under Mailbox in the Menu bar select New Smart Mailbox.
    Create a new folder to see messages recevied today (include the trash)
    Do you see the messages now? If yes, we need to see where the messages are filed.
    What email provider? (iCloud, Gmail, Yahoo, AOL, Earthlink, Comcast, ATT, other)

  • Having trouble sending messages or doing FaceTime on my iPad

    My troubles began this morning after I changed my account password. I have been trying to sign in with my current updated password but the system is not allowing me. It says that there is something with my network connection! My Internet works just fine! Any suggestions?

    Diavonex,
    I sent a reply early this morning and was not sure you received it.  I am still awaiting a reply from you.  Here is what I wrote in response to your recommendation of delete the mail account and recreate it:  "
    DIavonex,
    thank you for responding.  I originally thought that could of been the problem,so I have deleted the account and recreated it several times.  I contacted my carrier and he suggested a reset based on his previous experience with his iPhone.  When I tried the reset, the Apple logo appeared and then went black but never restarted.  I had to hit the power button for it to start back up.
    One question; when performing the reset and getting the Apple Logo, do you continue depressing the Home and Power buttons until it restarts or do you release the buttons and the iPad should restart on its own?
    Darrell

  • Error message TD427 (A text element is not defined for form J_1IEWT_CERT)

    Hello,
    Q> I assign the SAP script form J_1IEWT_CERT to 'SPRO=>Withholding Tax Certificates for Vendor and Customers' and was trying to see the print preveiw. But once I press printpreview button error comes "ELEMENT TITLEDET WINDOW TITLEDET IS NOT DEFINED FOR FORM J_1IEWT_CERT" and i can't see the printprview.
    Same thing I tried with the copy of J_1IEWT_CERT from 000 client to ZJ_1IEWT_CERT; but same error is coming.
    If i try the printpreview through SE71 it shows without error.
    Thank You.

    "test printing" via SE71 only prints what exists in the form. Here your form is missing TITLEDET window and element.
    The print program tries to print TITLEDET but it does not exist. Could you check SAP notes to get correct versions of print program and sapscript form.

  • HT1766 Has anyone had trouble sending a photo message

    Has anyone had trouble sending a photo message

    Many people (I'm not one of them) have had trouble sending pictures for a very wide variety of reasons.
    If what you're actuallly trying to say is "I'm having trouble sending pictures. Can someone help?" then we're going to need more details. Check with your carrier to make sure your account is properly set up. Go to Settings>Messages and make sure you have MMS turned on. Make sure that you have an active data connection (cellular or WiFI).

Maybe you are looking for