I have been working on a small core banking project. I would like to ask a question.
Suppose that we have a transaction microservice. A transaction request has been sent to our service. After storing and doing this transaction, Is it right to return transaction informations?
Here is an example of process.
INPUT
• Account ID
• Amount
• Currency
• Direction of transaction (IN, OUT)
• Description
OUTPUT
• Account ID
• Transaction ID
• Amount
• Currency
• Direction of transaction
• Description
• Balance after transaction
ERROR
• Invalid currency
• Invalid direction
• Invalid amount (if negative amount for example)
• Insufficient funds
• Account missing
• Description missing
There's in general no reason that a command couldn't have a response/return value with more than just command succeeded/failed.
Related
In DataDog's log search, I want to match the following sentence. But I have not been able to do so.
• Request failed with status code 500
• Request failed with status code 525
• Request failed with status code 512
The status code can be any value from 500 to 599.
I have tried using the following searches. Now of them work.
• "Request failed with status code 5*"
• "Request failed with status code 5**"
• "*Request failed with status code 5*"
• "Request failed with status code 5?*"
• "Request failed with status code 5??*"
• "Request failed with status code 5??"
• "*Request?failed?with?status?code?5*"
• "Request?failed?with?status?code?5??"
• "*Request?failed?with?status?code?5??*"
These work. But the result is wrong.
"Request failed with status code" 5??
"Request failed with status code" 5*
Any help would be appreciated, thanks!
update:
looks like ? doesn't match on spaces
query HTTP responded 5??
they need to be escaped: query HTTP\ responded?5??
So I would try Request\ failed\ with\ status\ code\ 5?? as the query.
However I would recommend parsing the log with a pipeline so you can just make an easier query like `#request.status:failed #status.code:[500 TO 599]. To avoid having to dealing with all the escaping and wilcarding
Wildcards don't work inside quotes, they will be treated as literal.
just search for Request?failed?with?status?code?5??
You also don't need to surround the query with *, they are there by default when searching a message.
I am trying to fetch the RateCards for my Azure subscription, however I am unable to figure out the correct (combination of) parameters for my call to the API. I keep getting the following message:
{
"Message": "Invalid query specified. Please specify valid values for OfferDurableId, Currency, Locale and RegionInfo."
}
I'm currently supplying the following parameters:
$filter=OfferDurableId eq ’MS-AZR-0003P’ and Currency eq ’EUR’ and Locale eq ’en-US’ and RegionInfo eq ’NL’
I'm not certain whether there are any requirements between the OfferDurableId, Currency and Locale parameters, but I think these are fine. The parameter I'm mostly confused about is RegionInfo. As per the documentation (whatever little there is), this is the 2-letter ISO code which represents the country in which I purchased my subscription. I am quite certain that this was bought in the Netherlands, hence my attempt with NL, but it doesn't work. I've tried IE, GB, US and some neighbouring countries, but none of them work.
I should mention, the example in the docs (MS-AZR-0003P, USD, en-US and US) doesn't work for my subscription either, I'm guessing due to a mismatch in RegionInfo.
What would be a correct combination of values? Where would I find these values? (e.g. where would I find RegionInfo?)
As per #GauravMantri's response, the issue was indeed in the quotes. The "weird backquotes" (which were copied straight from Microsoft's documentation itself) are the issue. When replaced with normal single quotes (and after url-encoding the $filter value), the query works and returns my rate cards.
I noticed that sometimes SSAS Cube dimension member value case is differ from data source after Cube process .
Example:
(Database Field Value) ABC ---> Abc (Cube Dimension attribute value)
Language/Collation Settings:
Windows Collation: Latin1_General
Accent-Sensitive
Kana-Sensitive
Width-Sensitive
Language :
English(United States)
Note:
• This is an intermittent issue.
• Dimension, Cube collation settings are same as Server level settings.
• There are No changes to data source values.
• Cube Database Processing mode : “Process Full”
• SQL Server Version: 2012
Thanks
Naresh
I have this function to correlate icx_ticket in a LoadRunner script:
web_reg_save_param("WCSParam11",
"LB=icx_ticket='",
"RB/IC='resp",
"Ord=1",
"Search=Body",
LAST);
The parameter is not being captured and I am consistently getting this error.
Action.c(127): Error -26377: No match found for the requested parameter "WCSParam11". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 10240 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(127): Notify: Saving Parameter "WCSParam11 = ".
I can see in the data returned by the server icx_ticket appears as:
Action.c(79): GET /OA_HTML/txkObjectTag.js HTTP/1.1\r\n
Action.c(79): Referer: http://erpuat.safaricom.net:8010/forms/frmservlet?appletmode=nonforms&HTMLpageTit
Action.c(79): le=&HTMLpreApplet=&code=oracle/apps/fnd/formsClient/FormsLauncher.class&width=400&height=3
Action.c(79): 00&archive=/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar,/OA_JAVA/oracle/apps/fnd/jar/fndforms
Action.c(79): i18n.jar,/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar,/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar
Action.c(79): ,/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar,/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar,/OA
Action.c(79): _JAVA/oracle/apps/fnd/jar/fndctx.jar,/OA_JAVA/oracle/apps/fnd/jar/fndlist.jar&jinit_applet
Action.c(79): cache=off&gp15=icx_ticket&gv15=Vg4ifaWvXEHX1nnuRaKLlg..&gp2=resp_app&gv2=SQLGL&gp3=resp&gv
Action.c(79): 3=GENERAL_LEDGER_SUPER_USER&gp4=sec_group&gv4=STANDARD&gp5=function&gv5=GLXJEPST&gp6=other
Action.c(79): _params&gv6=&gp7=jsp_agent&gv7=http%3A%2F%2Ferpuat.safaricom.net%3A8010%2FOA_HTML%2F&gp13=
Action.c(79): dbc&gv13=ERPUAT\r\n
Kindly assist me to correctly capture and save the icx_ticket parameter.
As from my experience you will not able to correlate any value in ORACLE.
For saving the dynamic value which comes from server you can use
nca_edit_get_text("Field_Name",Variable_Name);
Here Field name is the name of the field where this value is present/display and varable mane is the variable you create for storing the data.
lr_save_string(Variable_Name, "Any_Name");
After that you can save your variable into load-runner variable using above function.
As from my experience you will not able to correlate any value in ORACLE.
You have very limited experience then.
If a Value is returned then it can be captured. Here we have the example of an autocorrelated variable not being captured. One must first ask if the recommended autocorrelation left boundary and right boundary conditions are optimal? If not, then tune them to be more robust - this requires that the user have manual correlation skills to address the issue No manual correlation skills then "No joy" on a solution.
Next, let's look at process items that are very commonly paired with a failing autocorrelation, does the script include active examination of expected results from each and every request and then does the script branch execution when the expected result fails to appear. There is a very high statistical correlation between no check on expected results and a failed LoadRunner variable autocorrelation, on the order of greater than 95%.
I am new to Amazon MWS API. I am working on Product feed and having problem with SKU. My scenario is when SKU length is less than 12 then add "WH" string with SKU value. For example if SKU is 920126, it will become WH920126.
When i get Amazon feed submission result, i get error message:
Invalid ProductType value for SKU: [WH920126].
According to the Amazon data definitions, SKU is an alphanumeric string; 1 character minimum in length and 40 characters maximum in length.
Any idea what is wrong with it?
Thanks in advance!
I got a same error..
I figured out the problem is if you delete any product from amazon you cannot upload product with same SKU which you deleted for another 24hours..
So it keeps saying Invalid ProductType value for SKU in my case.
Let Assume you uploaded a product successfully with SKU 4001 and deleted it for some reason (Using seller account). You cannot upload product with SKU 4001 for next 24 Hours. So try using different SKU then you might upload a product to amazon successfully.
Hope this helps.. Please let me know if any other reasons too..