Jump to content

Martyn Houghton

Hornbill Users
  • Posts

    4,028
  • Joined

  • Last visited

  • Days Won

    86

Posts posted by Martyn Houghton

  1. @Steve G

    Issue does indeed seem to be down to the date time parsing.

    2022/05/23 08:20:35 [ERROR] parseDateTime Failed for [h_datelogged]: parsing time " 18/05/2022 16:04" as "02/01/2006 15:04": cannot parse " 18/05/2022 16:04" as "02"
    2022/05/23 08:20:35 [DEBUG] [DATETIME] Failed to parse DateTime stamp  18/05/2022 16:04 against configuration DateTimeFormat 02/01/2006 15:04

    2022/05/23 08:20:35 [ERROR] parseDateTime Failed for [h_datelogged]: parsing time " 18/05/2022 16:04" as "02/01/2006 15:04": cannot parse " 18/05/2022 16:04" as "02"
    2022/05/23 08:20:35 [DEBUG] [DATETIME] Failed to parse DateTime stamp  18/05/2022 16:04 against configuration DateTimeFormat 02/01/2006 15:04

    Configuration is 

      "DateTimeFormat": "02/01/2006 15:04",

    What I found is that the was a leading space on the date field on some of the records, but enough records in the dataset to mean all I could see was them on the first page on the customer portal.

    Cleared it out with MySQL TRIM() to get rid of leading and following spaces.

    Cheers

    Martyn

  2. @Steve G

    We are receiving an warning when using Service Request Import Tool version 1.10.0 saying it is no longer the latest version and that we should be using v1.11.0. However on the former version appears to be available on GitHub. Can you advise?

    Just wondering if this is related to the LastUpdated issue we are having (see post link below)?

    image.png.add1c9b16a9440ffefb7c9810e4686e0.png

    image.thumb.png.109a881cd9ed10d9e8ff2e968c731cb6.png

    Cheers

    Martyn

     

     

  3. @Steve G

    Having an issue with the LastUpdated pramater, as it does not seem to be working and inserting the current date/time.

     

    	  "PublishedMapping":{
    		"Publish":true,
    		"Description":"[announcement]",
    		"LanguageCode":"en-GB",
    		"CreateEnglish":false,
    		"PublishedStatus":"publish",
    		"DatePublished":"[announcement_date]",
    		"ShowWorkaround":true,
    		"Workaround":"Originally Published on MyUniform [announcement_date]",
    		"LastUpdated":"[announcement_date]"
    	  }

    I am passing in the value in the date time format

      "DateTimeFormat": "02/01/2006 15:04",

    It seems to be just inserting a maximum value like it is a type conversion issue.

    image.thumb.png.7934df9fbf9d626fc64d61890568f915.png

    Any idea?

    Cheers

    Martyn

  4. @Steve G

    Could I just double check that when deleting Problem and Known Errors with the Hornbill Cleaner utility, any which have a 'published' request linked to them (h_itsm_published_requests), that the latter will also be deleted when the parent request is removed?

    Just checking as cancelling and closing a Problem/Known Errors which are actively published does not result in the published information being removed from publication on the portals.

    Cheers

    Martyn

  5. At the moment the 'View Request'  option for connections allows the viewing of the request in the Employee Portal, but not the Timeline.

    Enabling the 'Allow Collaboration' option allows them to both view and interact with the Timeline.

    Can we an enhancement request to allow read only view of the Timeline but not being able to update it. Ideally controllable at the service level, or as a system setting which enables view only of the Timeline when a connection has been granted 'View Request' permission.

    Cheers

    Martyn

     

    image.png.f61e82116eee951ee13e145d0967c5aa.png

    • Like 2
  6. @Steve G

    We tested this and are able to import and publish the requests. One issue though is the last updated date is not being honoured and this is getting set to the current import time.

    I tried setting both the 'h_last_updated' and the 'DatePublihed' but it still seems to show the import time. Is it possible to override this?

    Cheers

    Martyn

    image.thumb.png.d8b8953ca95f773b07a43fe4861dee62.png

     "AdditionalFieldMapping": 
    	  {
            "h_custom_a": "",
            "h_custom_b": "",
            "h_custom_c": "",
            "h_custom_d": "",
            "h_custom_e": "",
            "h_custom_f": "",
            "h_custom_g": "",
            "h_custom_h": "",
            "h_custom_i": "",
            "h_custom_j": "",
            "h_custom_k": "",
            "h_custom_l": "",
            "h_custom_m": "",
            "h_custom_n": "",
            "h_custom_o": "",
            "h_custom_p": "",
            "h_custom_q": "DTKE1",
    		"h_custom_r": "",
    		"h_last_updated":"[announcement_date]",
    		"h_root_cause":"[announcement]",
    		"h_steps_to_resolve":"[workaround]"
          },
          "RequestHistoricUpdateQuery": "SELECT 'Imported announcement from MyUniform' as h_description, announcement_date FROM knownerrors WHERE ke_id={RequestGUID}",
          "HistoricUpdateMapping": {
            "h_updatedate": "[announcement_date]",
            "h_timespent": "",
            "h_updatetype": "",
            "h_updateindex": "",
            "h_updateby": "",
            "h_updatebyname": "[ke_owner]",
            "h_updatebygroup": "Data Transfer",
            "h_actiontype": "",
            "h_actionsource": "[ke_owner]",
            "h_description": "[h_description]"
          },
    	  "PublishedMapping":{
    		"Publish":true,
    		"Description":"[announcement]",
    		"LanguageCode":"en-GB",
    		"CreateEnglish":false,
    		"PublishedStatus":"publish",
    		"DatePublished":"[announcement_date]",
    		"ShowWorkaround":true,
    		"Workaround":"[workaround]"

     

  7. @Steve G

    It also looks like the date conversion process needs to be extended to include the 'h_last_updated' additional field mapping for the column in h_itsm_knownerrors (same field is also present in the h_itsm_problems as well).

    "DateTimeFormat": "02/01/2006 15:04",
    
    MethodResult not OK: New Request : Invalid date/time format provided: [27/04/2022 12:29] for column h_last_updated

    Cheers

    Martyn

×
×
  • Create New...