简体   繁体   English

在 AX 2012 r2 中出现“Testing1”之类的错误不是 AxdEnum_XMLDocPurpose 的有效值

[英]Getting error like 'Testing1' is not a valid value for AxdEnum_XMLDocPurpose" in AX 2012 r2

I am completely new to MS AX technology and recently been allocated to support AX connector which is developed based on .net technologies.我对 MS AX 技术完全陌生,最近被分配支持基于 .net 技术开发的 AX 连接器。

Just to have small intro about AX connector: 1. This connector is one that acts as a mediator between AX tool and JB(jitterbit) studio.简单介绍一下 AX 连接器: 1. 该连接器充当 AX 工具和 JB(jitterbit) 工作室之间的中介。
2. Whenever a request(like create/read/update record) issued from JB studio, AX connector takes this request and communicate with AX tool and perform the required operation and gives back respective response back to JB studio. 2. 每当 JB studio 发出请求(如创建/读取/更新记录)时,AX 连接器接受此请求并与 AX 工具通信并执行所需的操作并将相应的响应返回给 JB 工作室。

So, now talking about the issue, a create record request has been issued from JB studio, this particular request is transformed into XML format and received by the AX connector(mediator) and when connector hand over this request to AX tool getting below error:所以,现在谈论这个问题,JB studio 发出了一个创建记录请求,这个特定的请求被转换成 XML 格式并被 AX 连接器(中介)接收,当连接器将此请求移交给 AX 工具时,出现以下错误:

'Testing1' is not a valid value for AxdEnum_XMLDocPurpose" “Testing1”不是 AxdEnum_XMLDocPurpose 的有效值”

Expectation:期待:
If request successfully executed/completed, will have 1 record created in MS AX 2012 > CustTable.如果请求成功执行/完成,将在 MS AX 2012 > CustTable 中创建 1 个记录。

Actual:实际的:
Getting above error or similar error with respect to other field.关于其他字段出现上述错误或类似错误。

My XML create record Request Below:我的 XML 创建记录请求如下:

<?xml version="1.0" encoding="UTF-8"?>    
<Request>
<body>
<executeoperation>
<operation>
<wsdlendpoint>DEMO:8101/.../wsdlendpoint>
<servicename>CustomerServiceClient</servicename>
<name>create</name>
<Parameters xmlns:xsi="">www.w3.org/.../XMLSchema-instance" 
 xmlns:ns3="">schemas.microsoft.com/.../sharedtypes" xmlns:ns2="">schemas.microsoft.com/.../Customer" 
 xmlns:ns1="">schemas.microsoft.com/.../Arrays" xmlns:ns="">schemas.microsoft.com/.../datacontracts">
<CallContext>
<ns:Company>Microsoft</ns:Company>
<ns:Language>Hindi</ns:Language>
<ns:LogonAsUser xsi:nil="true"/>
<ns:MessageId xsi:nil="true"/>
<ns:PartitionKey xsi:nil="true"/>
<ns:PropertyBag xsi:nil="true"/>
</CallContext>

<Customer>
<ns2:SenderId xsi:nil="true"/>
<ns2:ValidToDateTime timezone="GMTPLUS0530CHENNAI_KOLKATA_MUMBAI" 
 xsi:type="ns3:AxdExtType_CreatedDateTime"/>
<ns2:CustTable>
<ns2:_DocumentHash xsi:nil="true"/>
<ns2:AccountNum>SH_11285</ns2:AccountNum>
<ns2:AgencyLocationCode xsi:nil="true"/>
<ns2:BankAccount xsi:nil="true"/>
<ns2:BankCentralBankPurposeCode xsi:nil="true"/>
<ns2:BankCentralBankPurposeText xsi:nil="true"/>
<ns2:BankCustPaymIdTable xsi:nil="true"/>
<ns2:BirthCountyCode_IT xsi:nil="true"/>
<ns2:BirthDate_IT>1985-01-12</ns2:BirthDate_IT>
<ns2:BirthPlace_IT>India</ns2:BirthPlace_IT>
<ns2:CashDisc xsi:nil="true"/>
<ns2:CCMNum_BR xsi:nil="true"/>
<ns2:ClearingPeriod xsi:nil="true"/>
<ns2:CNAE_BR xsi:nil="true"/>
<ns2:CNPJCPFNum_BR xsi:nil="true"/>
<ns2:CommercialRegister xsi:nil="true"/>
<ns2:CommercialRegisterInsetNumber xsi:nil="true"/>
<ns2:CommercialRegisterSection xsi:nil="true"/>
<ns2:CommissionGroup xsi:nil="true"/>
<ns2:CompanyChainId xsi:nil="true"/>
<ns2:CompanyIdSiret xsi:nil="true"/>
<ns2:CompanyNAFCode xsi:nil="true"/>
<ns2:ContactPersonId>test@test.com</ns2:ContactPersonId>
<ns2:CreditRating xsi:nil="true"/>
<ns2:Curp_MX xsi:nil="true"/>
<ns2:Currency>USD</ns2:Currency>
<ns2:CustClassificationId xsi:nil="true"/>
<ns2:CustGroup>10</ns2:CustGroup>
<ns2:CustItemGroupId xsi:nil="true"/>
<ns2:CustTradingPartnerCode xsi:nil="true"/>
<ns2:DAXIntegrationId xsi:nil="true"/>
<ns2:DefaultDimension>
<ns3:Values>
<ns3:Value>
<ns3:Name>Rakesh1</ns3:Name>
</ns3:Value>
</ns3:Values>
</ns2:DefaultDimension>
<ns2:DefaultDirectDebitMandate xsi:nil="true"/>
<ns2:DefaultInventStatusId xsi:nil="true"/>
<ns2:DestinationCodeId xsi:nil="true"/>
<ns2:DlvMode xsi:nil="true"/>
<ns2:DlvReason xsi:nil="true"/>
<ns2:DlvTerm xsi:nil="true"/>
<ns2:EinvoiceEANNum xsi:nil="true"/>
<ns2:EndDisc xsi:nil="true"/>
<ns2:EnterpriseCode xsi:nil="true"/>
<ns2:EnterpriseNumber xsi:nil="true"/>
<ns2:FactoringAccount xsi:nil="true"/>
<ns2:FederalComments xsi:nil="true"/>
<ns2:FineCode_BR xsi:nil="true"/>
<ns2:FiscalCode xsi:nil="true"/>
<ns2:FreightZone xsi:nil="true"/>
<ns2:IdentificationNumber xsi:nil="true"/>
<ns2:IENum_BR xsi:nil="true"/>
<ns2:INSSCEI_BR xsi:nil="true"/>
<ns2:IntBank_LV xsi:nil="true"/>
<ns2:InterestCode_BR xsi:nil="true"/>
<ns2:InventLocation xsi:nil="true"/>
<ns2:InventProfileId_RU xsi:nil="true"/>
<ns2:InventSiteId xsi:nil="true"/>
<ns2:InvoiceAccount xsi:nil="true"/>
<ns2:IssuerCountry_HU xsi:nil="true"/>
<ns2:LineDisc xsi:nil="true"/>
<ns2:LineOfBusinessId xsi:nil="true"/>
<ns2:LvPaymTransCodes xsi:nil="true"/>
<ns2:MainContactPersonnelNumber xsi:nil="true"/>
<ns2:MainContactWorker xsi:nil="true"/>
<ns2:MarkupGroup xsi:nil="true"/>
<ns2:MCRMergedParent xsi:nil="true"/>
<ns2:MCRMergedRoot xsi:nil="true"/>
<ns2:Memo xsi:nil="true"/>
<ns2:MultiLineDisc xsi:nil="true"/>
<ns2:Name>Shalini1</ns2:Name>
<ns2:NIT_BR xsi:nil="true"/>
<ns2:numberSequenceGroup xsi:nil="true"/>
<ns2:OrderEntryDeadlineGroupId xsi:nil="true"/>
<ns2:OrgId>457848</ns2:OrgId>
<ns2:OurAccountNum xsi:nil="true"/>
<ns2:PackMaterialFeeLicenseNum xsi:nil="true"/>
<ns2:Party>Connector</ns2:Party>
<ns2:PartyCountry xsi:nil="true"/>
<ns2:PartyState xsi:nil="true"/>
<ns2:PassportNo_HU xsi:nil="true"/>
<ns2:PaymDayId xsi:nil="true"/>
<ns2:PaymentReference_EE xsi:nil="true"/>
<ns2:PaymMode>Credit</ns2:PaymMode>
<ns2:PaymSched xsi:nil="true"/>
<ns2:PaymSpec xsi:nil="true"/>
<ns2:PaymTermId xsi:nil="true"/>
<ns2:PBACustGroupId xsi:nil="true"/>
<ns2:PdsCustRebateGroupId xsi:nil="true"/>
<ns2:PdsRebateTMAGroup xsi:nil="true"/>
<ns2:PriceGroup xsi:nil="true"/>
<ns2:RegNum_W xsi:nil="true"/>
<ns2:ResidenceForeignCountryRegionId_IT xsi:nil="true"/>
<ns2:Rfc_MX xsi:nil="true"/>
<ns2:SalesCalendarId xsi:nil="true"/>
<ns2:SalesDistrictId xsi:nil="true"/>
<ns2:SalesGroup xsi:nil="true"/>
<ns2:SalesPoolId xsi:nil="true"/>
<ns2:SegmentId xsi:nil="true"/>
<ns2:ShipCarrierAccount xsi:nil="true"/>
<ns2:ShipCarrierAccountCode xsi:nil="true"/>
<ns2:ShipCarrierId xsi:nil="true"/>
<ns2:StateInscription_MX xsi:nil="true"/>
<ns2:StatisticsGroup xsi:nil="true"/>
<ns2:SubsegmentId xsi:nil="true"/>
<ns2:SuframaNumber_BR xsi:nil="true"/>
<ns2:SuppItemGroupId xsi:nil="true"/>
<ns2:SyncEntityId xsi:nil="true"/>
<ns2:TaxBorderNumber_FI xsi:nil="true"/>
<ns2:TaxGroup xsi:nil="true"/>
<ns2:TaxLicenseNum xsi:nil="true"/>
<ns2:TaxPeriodPaymentCode_PL xsi:nil="true"/>
<ns2:TaxWithholdGroup_TH xsi:nil="true"/>
<ns2:VATNum xsi:nil="true"/>
<ns2:VendAccount xsi:nil="true"/>
</ns2:CustTable>
</Customer>
</Parameters>
</operation>
</executeoperation>
</body>

<authInfo>
<domain>##JB####</domain>
<username>AX2012#######</username>
<password>##########</password>
</authInfo>
<timeoutValue>300</timeoutValue>
</Request>

Above request is received in my AX connector and sent to MS AX tool.以上请求在我的 AX 连接器中接收并发送到 MS AX 工具。 In the above request there are some mandatory fields like AccountNum, name etc. If I perform create operation with only mandatory fields values, everything works fine.在上面的请求中有一些必填字段,如 AccountNum、name 等。如果我只使用必填字段值执行创建操作,一切正常。 If in case I provide values for non manadatory fields like Company, BirthDate_IT, Party filled in values I am getting below error.如果我为非强制性字段(如 Company、BirthDate_IT、Party 填写的值)提供值,我将得到低于错误的值。

Instance validation error: 'Testing1' is not a valid value for AxdEnum_XMLDocPurpose实例验证错误:“Testing1”不是 AxdEnum_XMLDocPurpose 的有效值

Please help me with your ideas.请帮助我提出您的想法。 Also plz let me know for pre-requisites, articles to go through understand AX tables, their schemas and valid values for those table fields.另外请让我知道先决条件,了解 AX 表的文章,它们的模式和这些表字段的有效值。

Awaiting your help & suggestions.等待您的帮助和建议。

Thanks in advance.提前致谢。

Regards,问候,
Rakesh k拉克什k

The error is straight forward...you're passing bad data somewhere...wherever "Testing1" is being used.错误很简单……您在某处传递了错误数据……无论在哪里使用“Testing1”。

Testing1 is not valid for the AX enum XMLDocPurpose . Testing1对 AX 枚举XMLDocPurpose

If you look in the AOT in AX and find the XMLDocPurpose enum located at \\Data Dictionary\\Base Enums\\XMLDocPurpose you will see Testing1 is not valid...unless you've customized XMLDocPurpose and added Testing1 , which I highly doubt.如果您在AX的AOT看,找到XMLDocPurpose位于枚举\\Data Dictionary\\Base Enums\\XMLDocPurpose你会看到Testing1是无效的......除非你定制XMLDocPurpose并添加Testing1 ,我很怀疑。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误948:带有SQL Server 2008 R2的Visual Studio 2012 - Error 948 :Visual Studio 2012 with SQL Server 2008 R2 WCF 服务适用于 Server 2012 R2,但在 2016 上引发错误 - WCF Service works on Server 2012 R2 but throws error on 2016 AX2012R3 CLR编译问题 - AX2012R3 CLR Compile Issues 收到错误“值‘0’不是有效值” - getting error "value '0' is not a valid value" 在Windows 2012 R2终端服务器上使用C#获取注册表有什么问题 - What is wrong with getting the registry in C# on Windows 2012 R2 Terminal Server Windows Server 2012 r2 中的波斯文化 - Persian culture in Windows Server 2012 r2 在Windows Server 2012 R2中使用C#.NET Rest API打印PDF文件时出错 - Error printing PDF file using C# .NET Rest API in Windows Server 2012 R2 .Net Core 2部署到IIS 2012 R2-500内部服务错误-无日志 - .Net Core 2 deployment to IIS 2012 R2 - 500 Internal Service Error - no logs 另一个用户的AX 2012 R3 AIF系统服务呼叫上下文 - AX 2012 R3 AIF System Services Callcontext of another user C#是否已准备好用于Dynamics AX 2012 R3 - Is C# ready for Dynamics AX 2012 R3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM