Error SQLJConenctionBase - com.mes.reports.AuthActivityDataBean::loadDetailData - postgresql

This Error i got please help how to do anybody.
Error SQLJConenctionBase - com.mes.reports.AuthActivityDataBean::loadDetailData :
software.aws.rds.jdbc.postgresql.shading.org.postgresql.util.PSQLExecution: Error operator does not exist: charachter varying = numeric

Related

Flutter/Supabase - getting error with 'or' filter

I'm trying to build a Supabase query from my Flutter app that uses and 'OR' where clause like
goalType = 'steppingStone' OR (goalOpen = true AND goalType != steppingStone)
This translates into the rest syntax of...
goalType.eq.steppingStone,all(goalOpen.eq.true,goalType.neq.steppingStone)
However, when I call this I'm getting a Supabase/Postgress error of
PostgrestException(message: "failed to parse logic tree ((goalType.eq.steppingStone,all(goalOpen.eq.true,goalType.neq.steppingStone)))" (line 1, column 33), code: PGRST100, details: unexpected "(" expecting letter, digit, "-", "->>", "->" or delimiter (.), hint: null)
Any suggestions?
Typo at my end.
The rest param should be
goalType.eq.steppingStone,add(goalOpen.eq.true,goalType.neq.steppingStone)
... not ...
goalType.eq.steppingStone,all(goalOpen.eq.true,goalType.neq.steppingStone)

{Supplemental Symbols and Pictographs} Not being identified by Scala

I am trying to identify emojis within a sentence
def extractEmojiFromSentence (sentence: Any) : Seq[String] = {
return raw"[\p{block=Emoticons}\p{block=Miscellaneous Symbols and Pictographs}\p{block=Supplemental Symbols and Pictographs}]".r.findAllIn(sentence.toString).toSeq
}
This gives the following error
Exception in thread "main" java.util.regex.PatternSyntaxException:
Unknown character block name {Supplemental Symbols and Pictographs}
near index 112 [\p{block=Emoticons}\p{block=Miscellaneous Symbols and
Pictographs}\p{block=Supplemental Symbols and Pictographs}]
Do I have to import some libraries into my build.sbt . Or which is the reason for the above error?
UPDATE
Im tyring the below code as suggested in the comment
val x = raw"\p{block=Supplemental Symbols and Pictographs}".r.findAllIn(mySentence.toString).toSeq
But im getting the below error
Exception in thread "main" java.util.regex.PatternSyntaxException: Unknown character block name {Supplemental Symbols and Pictographs} near index 45
\p{block=Supplemental Symbols and Pictographs}
^
It appears that the regex engine in your JVM version does not recognize that block label. (Mine doesn't either.)
You can just supply the equivalent character range instead.
def extractEmojiFromSentence(sentence: String): Seq[String] =
("[\\p{block=Emoticons}" +
"\\p{block=Miscellaneous Symbols and Pictographs}" +
"\uD83E\uDD00-\uD83E\uDDFF]") //Supplemental Symbols & Pictographs
.r.findAllIn(sentence).toSeq

Comparing two strings with Jasper inner function EXACT

When I try to compare two values I have an error
ERROR PrintJasperService:338 - net.sf.jasperreports.engine.fill.JRExpressionEvalException:
Error evaluating expression for source text: //EXACT($P{id}, "14" ) ? "FLASH" :$P{name}
$P{id} I get out from an array: $P{map}.get("{id}")==null? " ":$P{map}.get("{id}")
So value of $P{id} can not be NULL.
The type of $P{id} is java.lang.String.
I tried compare with 'equals' but got the same error:
ERROR PrintJasperService:338 - net.sf.jasperreports.engine.fill.JRExpressionEvalException:
Error evaluating expression for source text: $P{id}.equals("14") ? "FLASH" :$P{name}
What I do wrong?
Declaring the parameter as java.lang.String would not convert the value to String, you'll need to make sure that the parameter expression evaluates to a String.
You can use something like this:
$P{map}.get("{id}")==null? " ":$P{map}.get("{id}").toString()

Convert mmddyy to YYYY-MM-DD in expression task in SSIS

I'm trying to use the below code to convert data from
'010118' to '2018-01-01'
(DT_DATE)(RIGHT(DATE,2) + LEFT(DATE,2) + SUBSTRING(DATE,3,2))
When I run this in SSIS i'm getting conversion error
An error occurred while attempting to perform a type cast.
Any help is much appreciated. Thanks
Found a solution for this using the below code
"20" + RIGHT(DATE,2) + "-" + LEFT(DATE,2) + "-" + SUBSTRING(DATE,3,2)

In YAML template validation fails to recognize "try"

Code:
DEBUG_MODE = True # Manually change when debugging
try:
CFN_CLIENT = boto3.client('cloudformation')
except Exception as error:
print('Error creating boto3.client, error text follows:\n%s' % error)
raise Exception(error)
Question:
Template validation error: Template format error: YAML not
well-formed. (line 37, column 1)
In my case (above code) the word "try" is placed at line 37 column 1. I wonder what is not correct? Thanks.