添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

To return expected results, you can:

  • Reduce the number of search terms. Each term you use focuses the search further.
  • Check your spelling. A single misspelled or incorrectly typed term can change your result.
  • Try substituting synonyms for your original terms. For example, instead of searching for "java classes", try "java training"
  • Did you search for an IBM acquired or sold product ? If so, follow the appropriate link below to find the content you need.
  • Problem

    User clicks "Transfer - External Data - Import from Flat Files":
    image 5163
    User chooses import specification, and CSV/TXT file. User clicks 'import/run' button.
    • An error appears.
    Example:
    In one real-life example:
    • The import specification was working previously in earlier month. Issue started suddenly one day.
    • Import data seems to fail after certain number of rows imported.
    • It is not related to invalid data as same rows (not imported in a previous attempt) can successfully be imported by reducing the number of rows (in the CSV/TXT file).

    Symptom

    Source: System.Web.Services Description:        System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: The statement has been terminated. Invalid length parameter passed to the LEFT or SUBSTRING function. at Microsoft.VisualBasic.ErrObject.Raise(Int32 Number, Object Source, Object Description, Object HelpFile, Object HelpContext)    at ControllerServerCommon.RaiseErrSrv.RaiseException(Int32 number, Exception ex)    at FrDImportBT.clsExtImport.DoImport(String sGuid, String sUser, Boolean bCaseExpVal, Int32 lBatchId, String sSpecName, String sStructureType, String sPrompts, Int32 lLLocale, Boolean& bError, Int32& lError, String& sErrorMsg, RecordSet rsFileDataAndInfo, RecordSet& rsRecon, RecordSet& rsLog, Boolean bIsExcelImport, Int64& lImportedRows)    at Cognos.Controller.Proxy.CCRWS.clsExtImport_DoImport(String sGuid, String sUser, Boolean bCaseExpVal, Int32 iBatchId, String sSpecName, String sStructureType, String sPrompts, Int32 iLLocale, Boolean& bError, Int32& iError, String& sErrorMsg, DataSet dsFileDataAndInfo, DataSet& dsRecon, DataSet& dsLog, Boolean bIsExcelImport)    --- End of inner exception stack trace ---
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)    at Cognos.Controller.ControllerSoapHttpClientProtocol.Invoke(String methodname, Object[] parameters)    at Cognos.Controller.Proxy.FrDImportBT.WSFrDImportBT.clsExtImport_DoImport(String sGuid, String sUser, Boolean bCaseExpVal, Int32 iBatchId, String sSpecName, String sStructureType, String sPrompts, Int32 iLLocale, Boolean& bError, Int32& iError, String& sErrorMsg, DataSet dsFileDataAndInfo, DataSet& dsRecon, DataSet& dsLog, Boolean bIsExcelImport)    at Cognos.Controller.Direct.DIimportD.ImportExternalData(String sSpecName, String sStructureType, String sPrompts, DataSet dsFileDataAndInfo, DataSet& dsLog, Boolean bCaseExpValue, Int32 iBatchId, Boolean& bIsExcelImport, Boolean& bErr, Int32& iError, String& sErrorMsg, Int64& lImportedRows)    at Cognos.Controller.ControllerDImport.clsDImport.ImportData(String sSpecName, String sStructureType, Int32 iBatchId, String sImportDir, String sImportFile, String sPrompts, DataSet& dsLog, Boolean& bErr, Int32& iError)    at Cognos.Controller.Forms.Form.frmDIstartimp.ImportExternalData()    at Cognos.Controller.Forms.Form.frmDIstartimp.IForm_DoClick(Int32 lCmd, String& sTag)
    Example:
    In one real-life example, the lookup table was designed to have 2 accounts with separator “;” (semi-colon).
  • Unfortunately, one of the accounts was missing the separator “;”
  • In one real-life example, the solution was to:
    1. Click "Transfer - External Data - Edit Lookup Table"
    2. Select/choose the relevant lookup table
    3. Modify the "To-column":
  • from: ACCOUNT
  • to: ACCOUNT;ACCOUNT
  • [{"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Controller","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.2.1","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]