Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

eConnect 2010 = The Contract is not in a Estimate Status

Posted on by 105

We are currently in the process of updating from gp 10 to 2010.  We have an external system that uses eConnect to create new projects with the following code:

      taPAProjects_ItemsTaPAProjects project = new taPAProjects_ItemsTaPAProjects();
 
      project.CUSTNMBR = sCustomerNumber;
      project.PACONTNUMBER = sContractNumber;
      project.PAprojid = sProjectID;
      project.PAprojname = sProjectName;
      project.PAPROJNUMBER = sProjectNumber;
      project.PAProjectTypeSpecified = true;
      project.PAProjectType = (short)ProjType;
      project.PAprojmngrid = sProjectManager;
      project.PABusMgrID = sBusManager;
      project.PAEstimatorID = sEstimator;
      project.PApurordnum = sPONumber;
      project.PADepartment = sDept;
      project.PAprjclsid = sProjectClass;
      project.PATRKCHGORDSSpecified = true;
      project.PATRKCHGORDS = (short)TrackCO;
      project.PAUD1Proj = sUserDef1;
      project.PAUD2_Proj = sUserDef2;
      project.PAAcctgMethodSpecified = true;
      project.PAAcctgMethod = (short)PAAcctgMethod.WhenPerformed;
 
      taPAProjects_ItemsTaPAProjects[] taPAProjects_Items = { project };
 
      PAProjectsType paProjectType = new PAProjectsType();
      paProjectType.taPAProjects_Items = taPAProjects_Items;
 
      eConnectType eConnect = new eConnectType();
      PAProjectsType[] paTransactionType = { paProjectType };
      eConnect.PAProjectsType = paTransactionType;
 
      bSuccess = GPIntegration.ExecuteEConnect(eConnect);

 

However, with the 2012 version of econnect we are now getting the following error:

Error Number = 9391  Stored Procedure= taPAProjects  Error Description = The Contract is not in a Estimate Status (PASTAT<>4) Acceptable values for creating a new project is 4=Estimate

Changing the contract status is not required in the GP interface nor was it required in eConnect version 10.  What is the best fix here?  If there isn't a good fix, could we still use version 10 of econnect with GP2010?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnect 2010 = The Contract is not in a Estimate Status

    What did you use for the code to open the contract change the contract status?

  • Brandon Levitt Profile Picture
    Brandon Levitt 105 on at
    Re: eConnect 2010 = The Contract is not in a Estimate Status

    Also tried that.  Only thing that works is setting contract to Estimating status, doing the project insert, and then changing the contract status back again.  

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: eConnect 2010 = The Contract is not in a Estimate Status

    How about integrating Project  with Open Status when Contract Status is also Open?

    Thanks

    Sandip

  • Brandon Levitt Profile Picture
    Brandon Levitt 105 on at
    Re: eConnect 2010 = The Contract is not in a Estimate Status

    tried that.  Also note that the error indicates an issue with the contract, not with the project.  If we change the status on the contract, adding the project via econnect works fine.

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: eConnect 2010 = The Contract is not in a Estimate Status

    Brandon,

    1) in your code you are not passing following

     projectLine.PASTATSpecified = true;

                   projectLine.PASTAT = 4;

    Can you please pass above value and check.

    2) Do you create Contract before you import Projects?

    Thanks

    Sandip

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans