Dynamic Field Error in OTRS 5

Moderator: crythias

Post Reply
mohsinkhan009
OTRS newbie
Posts: 64
Joined: 02 Sep 2015, 08:47
OTRS Version?: OTRS-Rel-5

Dynamic Field Error in OTRS 5

Post by mohsinkhan009 »

Hi all,

While creating ticket through SOAP I have facing below error not able to get dynamic field.

Code: Select all

Received data by provider from remote system (2016-07-18 11:24:00, debug)
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><TicketCreate xmlns="http://www.otrs.org/TicketConnector/"><UserLogin xsi:type="xsd:string">nagios</UserLogin><Password xsi:type="xsd:string">nagios</Password><TicketID xsi:type="xsd:string" /><TicketNumber xsi:type="xsd:string" /><Ticket><Title xsi:type="xsd:string">Nagios AutoTicket: 127.0.0.1/This is service description is </Title><Queue xsi:type="xsd:string">Raw</Queue><Type xsi:type="xsd:string">Incident</Type><Service xsi:type="xsd:string">Test</Service><State xsi:type="xsd:string">new</State><PriorityID xsi:type="xsd:int">4</PriorityID><CustomerUser xsi:type="xsd:string">test99</CustomerUser></Ticket><Article><SenderType xsi:type="xsd:string">system</SenderType><Subject xsi:type="xsd:string">Nagios AutoTicket: 127.0.0.1/This is service description is </Subject><Body xsi:type="xsd:string">

EventDate = Fri Oct 13 00:30:28 CDT 2000
EventHostAddress = 127.0.0.1
EventHostName = 127.0.0.1
EventOutput = 
EventServiceDesc = This is service description
EventState = 
EventType = 
ProblemID = 1
ProblemIDLast = 1
</Body><ContentType xsi:type="xsd:string">text/plain; charset=utf8</ContentType></Article><DynamicField><Name><![CDATA[HostAddress]]></Name><Value><![CDATA[127.0.0.1]]></Value></DynamicField>
<DynamicField><Name><![CDATA[HostName]]></Name><Value><![CDATA[127.0.0.1]]></Value></DynamicField>
<DynamicField><Name><![CDATA[ProblemID]]></Name><Value><![CDATA[1]]></Value></DynamicField>
<DynamicField><Name><![CDATA[ServiceDesc]]></Name><Value><![CDATA[This is service description]]></Value></DynamicField>
</TicketCreate></soap:Body></soap:Envelope>
Detected operation 'TicketCreate' (2016-07-18 11:24:00, debug)
No data provided
Incoming data before mapping (2016-07-18 11:24:00, debug)
$VAR1 = {
  'Article' => {
    'Body' => '

EventDate = Fri Oct 13 00:30:28 CDT 2000
EventHostAddress = 127.0.0.1
EventHostName = 127.0.0.1
EventOutput = 
EventServiceDesc = This is service description
EventState = 
EventType = 
ProblemID = 1
ProblemIDLast = 1
',
    'ContentType' => 'text/plain; charset=utf8',
    'SenderType' => 'system',
    'Subject' => 'Nagios AutoTicket: 127.0.0.1/This is service description is '
  },
  'DynamicField' => [
    {
      'Name' => '',
      'Value' => ''
    },
    {
      'Name' => '',
      'Value' => ''
    },
    {
      'Name' => '',
      'Value' => ''
    },
    {
      'Name' => '',
      'Value' => ''
    }
  ],
  'Password' => 'nagios',
  'Ticket' => {
    'CustomerUser' => 'test99',
    'PriorityID' => '4',
    'Queue' => 'Raw',
    'Service' => 'Test',
    'State' => 'new',
    'Title' => 'Nagios AutoTicket: 127.0.0.1/This is service description is ',
    'Type' => 'Incident'
  },
  'TicketID' => '',
  'TicketNumber' => '',
  'UserLogin' => 'nagios'
};
TicketCreate.MissingParameter (2016-07-18 11:24:00, error)
TicketCreate: DynamicField->Name  parameter is missing!
Outgoing data before mapping (2016-07-18 11:24:00, debug)
$VAR1 = {
  'Error' => {
    'ErrorCode' => 'TicketCreate.MissingParameter',
    'ErrorMessage' => 'TicketCreate: DynamicField->Name  parameter is missing!'
  }
};

Post Reply