OBIEE -- 子串语法错误?
OBIEE -- Syntax Error with Substring?
我将以下代码视为对 OBIEE 分析中字段公式的编辑,但 returns 出现错误。有什么想法吗?
SUBSTRING("Dim - Vendor Header"."Dock Time",
LOCATE(':',"Dim - Vendor Header"."Dock Time")+1,
(CHAR_LENGTH("Dim - Vendor Header"."Dock Time") -
LOCATE(':',REVERSE("Dim - Vendor Header"."Dock Time")) -
LOCATE(':',"Dim - Vendor Header"."Dock Time")))
错误如下:
Formula syntax is invalid.
[nQSError: 10058] A general error has occurred. [nQSError: 43113] Message
returned from OBIS. [nQSError: 27002] Near <)>: Syntax error [nQSError:
26012] .Please have your System Administrator look at the log for more
details on this error. (HY000)
SQL Issued: SET VARIABLE DISABLE_CACHE_HIT=1; SELECT Substring ("Dim -
Vendor Header"."Dock Time", LOCATE(':',"Dim - Vendor
Header"."Dock Time")+1) FROM "XHSS - Vendor"
OK (Ignore Error)
obiee12c中有函数字符串REVERSE吗?
您能否尝试在公式中仅给出以下部分,并检查是否出现相同的错误...
(CHAR_LENGTH("Dim - Vendor Header"."Dock Time") - LOCATE(':',REVERSE("Dim - Vendor Header"."Dock Time"))
我将以下代码视为对 OBIEE 分析中字段公式的编辑,但 returns 出现错误。有什么想法吗?
SUBSTRING("Dim - Vendor Header"."Dock Time",
LOCATE(':',"Dim - Vendor Header"."Dock Time")+1,
(CHAR_LENGTH("Dim - Vendor Header"."Dock Time") -
LOCATE(':',REVERSE("Dim - Vendor Header"."Dock Time")) -
LOCATE(':',"Dim - Vendor Header"."Dock Time")))
错误如下:
Formula syntax is invalid.
[nQSError: 10058] A general error has occurred. [nQSError: 43113] Message
returned from OBIS. [nQSError: 27002] Near <)>: Syntax error [nQSError:
26012] .Please have your System Administrator look at the log for more
details on this error. (HY000)
SQL Issued: SET VARIABLE DISABLE_CACHE_HIT=1; SELECT Substring ("Dim -
Vendor Header"."Dock Time", LOCATE(':',"Dim - Vendor
Header"."Dock Time")+1) FROM "XHSS - Vendor"
OK (Ignore Error)
obiee12c中有函数字符串REVERSE吗? 您能否尝试在公式中仅给出以下部分,并检查是否出现相同的错误...
(CHAR_LENGTH("Dim - Vendor Header"."Dock Time") - LOCATE(':',REVERSE("Dim - Vendor Header"."Dock Time"))