DynDeveloper.com

DynDeveloper.com

Sign Up Now! Log In

Archives

 

Hello,

I want to take benefit of out-of-the-box stored procedures and other DB objects created by eConnect by reUsing these objects. I tried to explore the SDK but couldnt find any description for available stored procedures. Currently i am trying to use "taCustomerBalance" and want to know parameter details for this. Can anyone help me in this?

Violation of PRIMARY KEY constraint 'PKAAG20000'. Cannot insert duplicate key in object 'dbo.AAG20000'. The duplicate key value is (18).
The statement has been terminated.

Note:
I've noticed that some field names have changed in AA for GP2010, so you may have to traslate for earlier versions. I'm running GP2010 at this client. Also, the table number in the error message might be different in your case.

AA keeps a 'next record number' of sorts in DYNAMICS..AAG00102. In my case there was an Integration Manager integration that had been running for some time and they were forcing in the AA transactions somehow and the 'next record number' was not getting updated. eConnect tried to do it the right way, and found that the 'next record number' was in use.

To fix:

Error in deserializing body of reply message for operation 'CreateTransactionEntity'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.

 I've solved issues similar to this before, but not with eConnect so I'll blog the issue here and in my XML blog.

The issue is that eConnect is returning a string longer than 8192 characters when we call CreateTransactionEntity. Here's the fix:

While doing some user testing, I needed to set security so that a particular user could see the new modified form that I had just created. but that causes an issue with the other users, who don't yet have the dictionary for the modified form. So... exactly who are these users? Who is going to get an error?

 

 

I was just trying to convert over some code for eConnect 10 and several things are not working. 

1) connects on the server, not on the client:  Do I have to install the econnect service on the client from the GP DVD?  I was getting the no endpoint listening error message.  So I installed on the client and now the service stops and started.  Did edit both config files to have host name.  Before I go too far down the troubleshooting road I want to make sure I am supposed to install the service on the client.

2)  Dim pmNumber As String

 

pmNumber = getDocNumbers.GetPMNextVoucherNumber(IncrementDecrement.Increment, CurrentCompanyConnect)

give this error message:  String was not recognized as a valid Boolean

 3) Dim result As String = eConCall.CreateTransactionEntity(CurrentCompanyConnect, PMMasterDocument)

PMMasterDocument =

 

<?xml version="1.0" encoding="utf-8" ?>

- <eConnect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <PMTransactionType>
  <eConnectProcessInfo xsi:nil="true" />
  <taRequesterTrxDisabler_Items xsi:nil="true" />
  <taUpdateCreateVendorRcd xsi:nil="true" />
  <taCreateVendorAddress_Items xsi:nil="true" />
  <taPMTransactionTaxInsert_Items xsi:nil="true" />
- <taPMDistribution_Items>
  <taPMDistribution xsi:nil="true" />
- <taPMDistribution>
  <DOCTYPE>1</DOCTYPE>
  <VENDORID>AMEX</VENDORID>
  <DISTTYPE>6</DISTTYPE>
  <ACTNUMST>6615-190</ACTNUMST>
  <DEBITAMT>244.40</DEBITAMT>
  </taPMDistribution>
- <taPMDistribution>
  <DOCTYPE>1</DOCTYPE>
  <VENDORID>AMEX</VENDORID>
  <DISTTYPE>2</DISTTYPE>
  <ACTNUMST>2000-000</ACTNUMST>
  <CRDTAMNT>244.4</CRDTAMNT>
  </taPMDistribution>
  </taPMDistribution_Items>
  <taAnalyticsDistribution_Items xsi:nil="true" />
- <taPMTransactionInsert>
  <BACHNUMB>CC 201104</BACHNUMB>
  <VENDORID>AMEX</VENDORID>
  <DOCNUMBR>02152011 -GL</DOCNUMBR>
  <DOCTYPE>1</DOCTYPE>
  <DOCAMNT>488.8</DOCAMNT>
  <DOCDATE>2/28/2011</DOCDATE>
  </taPMTransactionInsert>
  <taMdaUpdate_Items xsi:nil="true" />
  </PMTransactionType>
 
 
Gives me "sequence contains no elements"
 
Any help would be appreciated!