Author Topic: EmployeeAdd error at Phone  (Read 1480 times)

Ritesh Gupta

  • Member
  • *
  • Posts: 13
EmployeeAdd error at Phone
« on: October 10, 2013, 06:22:16 AM »
Hi

I am new in FMBook connector.

When I am adding Employee Phone through script. ...I am getting this error..

Error Message:
CODE: -1000
SEVERITY: failed validation
MESSAGE: Error at Phone
Reason:   Element 'Phone' is unexpected according to content model of parent element 'EmployeeAdd'.
Expecting: EmployeeType, Gender, HiredDate, ReleasedDate, BirthDate, AccountNumber, Notes, BillingRateRef, EmployeePayrollInfo.

Field Value:   334-669-4001

<?xml version="1.0" ?><!DOCTYPE QBXML PUBLIC '-//INTUIT//DTD QBXML QBO 6.0//EN' 'http://webapps.quickbooks.com/dtds/qbxmlops60.dtd'><QBXML><QBXMLMsgsRq onError="stopOnError"><EmployeeAddRq><EmployeeAdd><Name>Tyler Perry</Name><FirstName>Tyler</FirstName><LastName>Perry</LastName><SSN></SSN><Email></Email><Phone>334-669-4381</Phone></EmployeeAdd></EmployeeAddRq></QBXMLMsgsRq></QBXML>


Please Help me..
Thanks in Advance
Ritesh

Ritesh Gupta

  • Member
  • *
  • Posts: 13
Re: EmployeeAdd error at Phone
« Reply #1 on: October 10, 2013, 06:28:36 AM »
Hi
Here is my script. I am not able to add Date of birth also...
What is wrong in this script please help me

Thanks
Ritesh

Geoffrey Gerhard

  • Guru
  • Member
  • ****
  • Posts: 468
Re: EmployeeAdd error at Phone
« Reply #2 on: October 10, 2013, 08:52:51 AM »
The Phone element is out of sequence--it has to precede the SSN element. You also show a Name element, but it's not a valid tag in an Employee Add Request.

HTH!

Geoffrey Gerhard
Creative Solutions Incorporated
14000 Creekside Drive
Matthews, NC  28105
704) 814-6852

Ritesh Gupta

  • Member
  • *
  • Posts: 13
Re: EmployeeAdd error at Phone
« Reply #3 on: October 10, 2013, 11:16:44 PM »
Hi Geoffrey

Thanks for reply...
Can you please share the link where I can find the sequence of element and valid tag request.
I am new in FM Books connector.

Thanks
Ritesh

Geoffrey Gerhard

  • Guru
  • Member
  • ****
  • Posts: 468
Re: EmployeeAdd error at Phone
« Reply #4 on: October 14, 2013, 08:58:07 AM »
Try this...

https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html

HTH!

Geoffrey Gerhard
Creative Solutions Incorporated
14000 Creekside Drive
Matthews, NC  28105
704) 814-6852