0% found this document useful (0 votes)
21 views2 pages

Monitoring

1. The document describes steps to import order status data from a temporary table, check for orders not available in the main table, and sync the unmatched orders by inserting them into a processing table with the OMS source. 2. It also includes queries to check order details, events, and API requests and responses to investigate order processing issues. 3. The queries are used to search order details by status, event type, API URL, date range and request/response data fields to troubleshoot specific orders.

Uploaded by

Vaibhav Mittal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Monitoring

1. The document describes steps to import order status data from a temporary table, check for orders not available in the main table, and sync the unmatched orders by inserting them into a processing table with the OMS source. 2. It also includes queries to check order details, events, and API requests and responses to investigate order processing issues. 3. The queries are used to search order details by status, event type, API URL, date range and request/response data fields to troubleshoot specific orders.

Uploaded by

Vaibhav Mittal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Increff se "Order Status Report Detail - OMS Report"-----> import into


temp_table
2. check order not available

-- Increff
select distinct t.orderno from temp_vishal t
where not exists ( select 1 from tborderheader oh where
oh.fdOriginalOrderno=t.orderno );

-- vin
select distinct t.orderno from temp_vishal t
where not exists ( select 1 from tborderheader oh where
oh.fdReferenceOrderNo=t.orderno );

Step 3
If Result>0
{
-- sync Increff
INSERT INTO tborderstobeprocessed (
fdOrderNumber,
fdOMSSource,
fdCreatedOn
)
SELECT
DISTINCT orderno,
'2',
now()
FROM temp_vishal WHERE temp_vishal.orderno NOT IN (SELECT fdOrderNumber FROM
tborderstobeprocessed) ;

-- sync vin
INSERT INTO tborderstobeprocessed (
fdOrderNumber,
fdOMSSource,
fdCreatedOn
)
SELECT
DISTINCT orderno,
'1',
now()
FROM temp_vishal WHERE temp_vishal.orderno NOT IN (SELECT fdOrderNumber FROM
tborderstobeprocessed) ;
}

Step 4.
After Some time 15-20 min der baad
check step 2 again.

-----------------------------------------------------------------------------------
-----------

#PFB queries used for checking order details with request and response.
-- To check events
select * from tbcodelkup where fdLkUpCode like '%INCREFF_EVENT_TYPE%' ;

-- Insert order code with oms source to re process orders.


select * from tborderstobeprocessed ;
-- Check event with response sucess or failure with time.
-- status -1,0,1;
select * from tbIncreffOrderDetail where fdStatus=-1 and fdCreatedOn>='2023-07-01
00:00:00';

-- Check request and response of the call with api url and date time.
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder'
and fdCreatedOn>=PFB;
#queries used for checking order details with request and response.

-- Check event with response sucess or failure with time.


select * from tbIncreffOrderDetail where -- fdValue ='452d48b2-fb57-4a41-b53a-
bfc2131c6e47'
fdstatus=-1 and fdcreatedon>='2023-07-01 00:00:00'
#fdMessageId=9704289;
;

-- Api urls
# /api/reproSeller/saveIncreffOrder
# https://repro-assure.increff.com/repro-toolkit//orders/retrigger-events
# https://repro-assure.increff.com/repro-toolkit//orders/pull-events
# http://works.reproindialtd.com/api/reproSeller/returnOrder
# http://works.reproindialtd.com/api/reproSeller/saveOrderShippingDetails
# http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder

-- EventType= 1
select * from tbincreffrequestaudit
where
fdAPIURL='http://works.reproindialtd.com/api/reproSeller/saveOrderShippingDetails'
and fdCreatedOn>='2023-05-03 00:00:00'
and fdCreatedOn<='2023-05-06 19:53:21'
and fdRequestData like '%UJftx9pS7%'
;
-- EventType=3
select * from tbincreffrequestaudit
where fdAPIURL='/api/reproSeller/saveIncreffOrder'
and fdCreatedOn>='2023-07-04 11:47:56'
and fdCreatedOn<='2023-07-04 11:52:56'
and fdRequestData like '%8575f4a6-e36c-4d10-9e65-d91d73c4f8e3%'
;
-- EventType=2 or 4
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder'
and fdCreatedOn>='2023-06-01 11:00:06'
and fdCreatedOn<='2023-06-01 11:02:06'
and fdRequestData like '%e28831e2-7bf5-4ed3-a905-8d992bad5e30%'
;

-- EventType=5
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/returnOrder'
and fdCreatedOn>='2023-07-01 08:50:15'
and fdCreatedOn<='2023-07-01 08:55:15'
and fdRequestData like '%d8db9964-755e-400b-a93e-bfc492c27d5e%';

You might also like