youngmon/atlassian-qna huggingface dataset:
Duplicate Users in the Database with System Error
Asked by BKippelt:

Hi,

When calling certain pages we get a system error. This error reports duplicate users. Among other things, when I go into the administration of an space. e.g. /spaces/viewspacesummary.action?key=TEST

```
Cause

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpaceAdmins' in class com.atlassian.confluence.spaces.actions.ViewSpaceSummaryAction threw exception org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at spaces/general-viewspacedetails.vm[line 11, column 29]
????at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)

caused by: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
????at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:256)

caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
????at org.hibernate.query.internal.AbstractProducedQuery.uniqueElement(AbstractProducedQuery.java:1483)

```

We've cleaned up the users before. The AD has been reconnected. But the problem keeps coming back after a while. And it's not yet clear why it hits certain users and when it doesn't.

Any Help? Links?

Thanks

Bastian


Answers:
author: Stan Ry
body: Howdy Bastian,

Please have a [look here](https://confluence.atlassian.com/confkb/synchronization-with-external-directory-fails-with-error-query-did-not-return-unique-result-757727378.html) and [there](https://confluence.atlassian.com/bamkb/database-corruption-query-did-not-return-a-unique-result-2-297672184.html).

Also, have you seen [this article](https://confluence.atlassian.com/confkb/user-related-issues-in-confluence-with-the-error-message-query-did-not-return-a-unique-result-596181603.html)?

comments: author: BKippelt
body: Hi Stan,

thank you for your answer. We know the Knowledge Base articles and they help to solve the problem. However, we also want to understand the cause. How did this happen? And how can we prevent it? Is our Active Directory corrupt? Are our AD settings wrong? Is it Confluence? Where does the problem come from?

Because this is the fourth time that we have to solve this problem and do not know where it comes from.

<https://confluence.atlassian.com/confkb/user-related-issues-in-confluence-with-the-error-message-query-did-not-return-a-unique-result-596181603.html>

Best Regards,

Bastian


Tags: active-directory

confluence-server

server
How do we move the confluence application to a new server
Asked by Harini Gangaraj:

Hi all,

We have confluence application and the database installed on the same server for testing purpose. But would like to move the application to a newer server on prem - OS is windows and the database is sql server 2016. anyone done this before ? Any pointers to do this smoothly is very much appreciated.

Thank you in advance


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

I would try the following procedure on a test/staging server first:

1. Shutdown Confluence on old server

2. Backup everything (Confluence \& database)

3. Make sure Confluence doesn't startup again on the old server (Disable/Delete Service)

4. Copy Confluence directories to the new server (Inst \& data). Copy them to the EXACT same drive \& directory structure.

5. Check the server.xml file for static IP-Addresses / DNS entries of old server \& change them to the new server

5.a Are you using a proxy server in front of Confluence? Is it running on the same machine? Move it, too \& check the configuration (IP-Addresses,etc).

6. Check your database connection. This depends if you use a direct database connection from Confluence or a database connection handled by the Tomcat server of Confluence (JNDI).

<https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html>

7. Change your DNS to point to the new server

8. Create a new Confluence server on the new server (service.bat install) (Check documentation)

9. Configure the java.properties to the same values as on the old server (Start tomcat8w.exe or tomcat9w.exe on the old server to check set settings \& copy them to the new server)

10. Check local firewall settings. Make sure the database server can be reached \& that the new server is reachable by http/https (80/443) \& (if needed) can open connection to 443 by itself (Checking Atlassian Marketplace for app upgrades).

11. You might want to clear the application.log before starting up on the new server.

12. Start up the service on the new server (net start ConfluenceXXXXXXXXX) or use the service UI.

13. Check the logs for a smooth startup

I just did this procedure last weekend \& it was very smooth.

Best

JP

comments: author: Harini Gangaraj
body: JP ,

Thank you so much for the detailed procedure. I do have one question though -- you had mentioned that

4. Copy Confluence directories to the new server (Inst \& data). Copy them to the EXACT same drive \& directory structure.

Right now everything is on the C:\\. i would like to move the install to its own drive. is this not feasible ?

Regards

Harini


author: JP _AC Bielefeld Leader_
body: Well,

you really have to test this on a staging/test server.

Check this:

<https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html>


Tags: confluence-server

server
Etiquetas
Asked by Mireya de la Iglesia:

Las etiquetas que se crean en un blog o espacio de confluence, se pueden enlazar con las solicitudes de JIRA.

Gracias


Answers:
author: Stan Ry
body: Hola! Por lo que se, las etiquetas son construidas solamente como el texto, pues, no es posible enlazar las con algo excepto de las paginas Confluence.

Que queres lograr? ?uales son tus objetivos?
Problem while installing Scaffolding plugin
Asked by wajih zouaoui:

Hi,

i don't knwo why but i cannot install Scaffolding plugin in our confluence instance for test ?

It stucks at 90% and then we must restart the instance because we cannot use the addon manager.

We are using confluence with the 6.10.2 release and i've tried 2 differents releases for the plugin : 8.19.8 and the 8.19.0 .

Can you help me please ?

Thanks a lot.

Wajih


Answers:
author: wajih zouaoui
body: Hi again,

it works after waiting like more than 1hour.


author: Immanuel Siagian _ServiceRocket_
body: Hi Wajih,

Installing the scaffolding add-on should not take more than an hour. There maybe other factors (another 3rd party add-on) that can contribute to this ([source1](https://confluence.atlassian.com/confkb/updating-or-installing-plugins-takes-a-very-long-time-because-of-spreadd-for-confluence-plugin-419005771.html) and [source 2](https://confluence.atlassian.com/confkb/updating-or-installing-plugins-takes-a-very-long-time-because-of-sharepoint-connector-for-confluence-300814425.html)).

If you happen to hit to the same error in the future, please reach out to us at [http://success.servicerocket.com](http://success.servicerocket.com/)

Best,

Immanuel


Tags: confluence-server

server
How can we create a Project Plan in Confluence
Asked by Juned Shaikh:

I am looking for a project Plan with a Gantt Chart.that can help me to provide a Critical Path Method on the Project Plan as the activities are scheduled automatically.

Also, the notes section should be structured in such a way, it should make the Project Plan look presentable.

If we have any existing samples of the project plan and anyone can share, that would be great.

Thank you!

Regards,

Juned Shaikh


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello Juned,

There as an [article about Gantt charts](https://stiltsoft.com/blog/2018/10/5-tips-to-become-a-gantt-chart-expert-using-atlassian-confluence/) in Confluence. Hope it will help.

comments: author: Juned Shaikh
body: This helps, it tells you how you can create an gantt chart. I wish we had a video around it


author: Juned Shaikh
body: Actually, Let me try and work with the tool this might just be the answer. thank you!


author: Juned Shaikh
body: [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696)

I am getting errors as incorrect date format and I am not able to fix it.

can you help here?


author: Andrey Khaneev _StiltSoft_
body: Yes, what do you see there?


author: Juned Shaikh
body: ![Capture.123.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/49881i4C05593EC1BC3A67/image-size/large?v=v2&px=999 "Capture.123.PNG")


author: Andrey Khaneev _StiltSoft_
body: Remove "Activity" column from "Values column" field and select "Start date" and "End Date" columns there.


author: Juned Shaikh
body: [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696)

It is fixed. Thank you!


author: Dave Theodore [Coyote Creek Consulting]
body: Confluence is a documentation system, not a PPM system.

We find that most people use Jira and Confluence together to meet their project management and reporting needs. They track their issues in Jira, indicate progress, set dates, effort, indicate blockers, etc there. This information is easily aggregated in Confluence by [embedding Jira gadgets in to Confluence pages](https://confluence.atlassian.com/doc/gadgets-204047542.html). There are a number of [Gantt apps](https://marketplace.atlassian.com/search?product=jira&query=gantt) available for Jira, some of which have Dashboard Gadgets that you could embed in to Confluence pages. I hope that helps point you in the right direction.


author: Takafumi Ohtake -Ricksoft-
body: Hi everyone!

Using **[Gantt Chart Planner for Confluence](https://marketplace.atlassian.com/apps/1227063/gantt-chart-planner-for-confluence-fast-roadmap-timeline?tab=overview&hosting=cloud&utm_medium=atlassian-community&utm_source=questions&utm_campaign=20220216)** is another option.

And, an article **[Plan Projects and Roadmaps with Gantt Charts in Confluence Cloud](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Plan-Projects-and-Roadmaps-with-Gantt-Charts-in-Confluence-Cloud/ba-p/1929687)** summarizes the pros and cons of various ways to draw Gantt charts in Confluence Cloud.

It might be helpful even though you use Confluence Server/DC.

I hope it helps you.


Tags: new-to-confluence
How to get 'innerHTML' of $body inside a user macro
Asked by Robin M_ Buck:

Dear all,

I try to make a user macro where hide different content based on a status text which is stored inside Status Handy.

\<ac:structured-macro ac:macro-id="xxxxx" ac:name="status-handy" ac:schema-version="1"\>  
\<ac:parameter ac:name="Status"\>**n/a** \</ac:parameter\>  
\<ac:parameter ac:name="id"\>19969\</ac:parameter\>  
\</ac:structured-macro\> \<time datetime="2019-01-01"/\>

so when Status is n/a i do not want to show a date.

With $body in the user macro, i only get the interpreted string, but not the HTML parsable string.

Any comments how to do so ?
> ## This is an example macro  
> ## @param Search:title=Search term\|type=string\|required=true\|desc=Enter your searchterm
>
> #if($body.contains($paramSearch))  
> Found! "$body"  
> #else  
> Not found !  
> #end

thx

Robin


Answers:
author: Bill Bailey
body: This might be a good use case of wrapping that macro in a user macro so that it is easier to control. Where the user macro actually controls and inserts the second macro.

For an example of a wrapper macro, see [Getting Started with User Macros - Writing a Wrapper Macro](https://community.atlassian.com/t5/Confluence-articles/Getting-Started-with-User-Macros-Writing-a-Wrapper-Macro/ba-p/979571)

(Disclaimer, I am the author of the article.)

comments: author: Robin M_ Buck
body: I tried to wrap that macro into a user macro. Actually its even this:

- User Macro 1: show final result  
-- User Macro 2: so parse the HTML Content of the macro inside this macro  
--- any Macro (e.g. status-handy)

But the problem is now, how can i modify the content inside the User Macro 2?  
I feel more and more, that i need to develop an own macro using IDE.


author: Bill Bailey
body: I think you are making it too hard. I would use the wrapper macro to set the parameter you need for the status-handy macro (plus any others). Then you can conditional show the macro based on that macro and now have to worry about parsing the body.

In the wrapper macro, there woudl be no body.


author: Robin M_ Buck
body: Thanks for your proposal...


author: Aleksandr Zuevich
body: Hi Robin,

Have you tried to change Macro Body Processing like Escaped or Unrendered?

comments: author: Robin M_ Buck
body: Hi Aleksandr,

Unfortunately this is not working, because i need to have the HTML Content to parse the code inside another macro, but need to show then the final result.


Tags: confluence-server

server
Edit in Office option in confluence not working in any of the browser
Asked by Karthick Jaganathan:

Edit in Office option in confluence not working in any of the browser.

Error :

/plugins/servlet/confluence/editinword/153846781/attachments/ocauth/af92b42a-6c73-42b6-b934-10fef201fe9d/OP\&amp;D%20Org%20Chart%20Mar19.pptx \| traceId: 398ef70dafe5a2fa \| userName: anonymous  
java.lang.NullPointerException


Answers:
author: Shannon S
body: Hi Karthick,

What a pain that this isn't working for you anymore. Let's see what we can find out.

Can you let me know the following?

1. Your Confluence version
2. Does this occur on multiple computers?
3. For all users?
4. For all document types?
5. Most importantly, we need to check out the [Confluence Server Logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) to see what error is causing the NPE. Can you tail that server log and trigger the error again, letting me know what stacktrace you receive? That will help to understand the issue.
6. Lastly, let me know if you're behind a firewall or proxy, and if bypassing that resolves your issue.

Regards,

Shannon


Tags: confluence-server

server
COnlfuence search in tables
Asked by Horatiu Muresan:

Search in confluence, where the content is located inside the tables is not working.

Any ideas how to?


Answers:
author: Diego
body: Hello there!

Thanks for sharing here with us. I inserted a table and later searched for that content with both the basic search and advanced search in Confluence Server 6.14.2.

Further, I have tested the basic and advanced searches in Confluence Cloud and they also worked there.

With this in mind, please allow me to ask some questions:
> 1. Could you clarify what exactly happens that keeps the search from working?
> 2. Would it be possible for you to send screenshots of what you see when you try to execute a search?
> 3. Has this worked at some point?
> 4. Are you able to execute searches that do not fit into the problem description?

Looking forward to your reply.

comments: author: Horatiu Muresan
body: Hi Diego,

thank you for your reply. I tested the feature with a new page/table created and the search works fine. The pages I have issue searching were created in 2015 - perhaps that's the issue.

thank you!
how can I copy events from a calendar to another?
Asked by Damian Egli:

Is there an option to copy an event from a restricted calendar to another, more public one?


Answers:
author: Diego
body: Hello There!

Currently, Team Calendars does not have an option to copy events from a calendar into another. We had a suggestions aiming at this. You can check it here:

**[CONFSERVER-50249 \| To Include 'Copy From' Calendar Option](https://jira.atlassian.com/browse/CONFSERVER-50249)**

A possible workaround is to export the existing calendar and then re-import it into Confluence with another name and then recreating the faulty events in it.

Other than that, if it is only one event we could manually recreate it in the desired Calendar.

Looking forward to your reply!

comments: author: Damian Egli
body: Hello Diego, thanks for your answer. The workaround seems to be too complicated for copying 1 Event. Your referenced tickets seems to be resolved. So we'll wait...


author: Diego
body: Thanks for getting back to us Damian! If you ever need something, come share with the community.


Tags: team-calendars-for-confluence
can we migrate confluence within servers with addons , server version will be different
Asked by Niharika Mishra:

can we migrate confluence within servers with addons , server version will be different


Answers:
author: Alexey Matveev
body: Hello,

You can migrate Confluence between servers without loosing plugin data. Have a look at this guide:

<https://confluence.atlassian.com/conf69/migrating-confluence-between-servers-950285783.html>
How can i add subrows to a parent row at tables at confluence?
Asked by alper.oguzkan:

I have created a table, i want to add subrows to a parent row. for example i have cell at a1, and i want to add subrow at b1/1,b2/2, b3/3,..

Thanks,

Alper


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello Alper,

Do you want this row to be created automatically with some calculated values? Or do you wnat to insert a row and fill in some data manually?

comments: author: alper.oguzkan
body: I want to fill the rows manually.


author: Andrey Khaneev _StiltSoft_
body: When you put cursor inside a table, the [table editor toolbar](https://confluence.atlassian.com/doc/tables-136463.html#Tables-Edityourtable) appears: there are buttons to insert a row before and after the current row. Is it what you are looking for?


author: alper.oguzkan
body: I know this one, but i want to add not a new row that is before/after from the relevant row but i want to add child rows that is attached to parent row.


author: Andrey Khaneev _StiltSoft_
body: Isn't it about merged cells? Or can you attach a screenshot to make it clear?


author: alper.oguzkan
body: Yes, with merge i have done that.

Thanks.
Using Glossary for Confluence Cloud
Asked by Shirel Cohen:

Good morning from Israel. I have already established a company glossary and it works really well. the only issue i have is - i am trying make the words already defined in the glossary pop when i am writing an article in the system. is there any way to do that?

thank you

shirel


Answers:
author: Kevin Daniels
body: Hi [@Shirel Cohen](/t5/user/viewprofilepage/user-id/2841561) , if you are looking to bring your Enterprise Glossary to the next level try [Smart Terms for](https://marketplace.atlassian.com/apps/1219677/smart-terms-for-confluence-glossary)Confluence !

Cheers


author: Thomas ?hrbom
body: I am not aware of any functionality as you describe. What you can do instead is for your glossary pages (one page per term / expression) put the content inside the Excerpt macro. Then on pages referencing a term / expression you can use the macro Excerpt Include to display the corresponding text. We use this for definitions in governing documents.


Tags: cloud

confluence-cloud
Importing Word document
Asked by Jane Webber:

If I copy and paste a Word document in it doesn't carry through headings and numberings.

I can't see the top right link to 'import word document' as a whole.

How do I get the document into confluence with all headings and formatting etc?

Thanks

Jane


Answers:
author: Ales Janzekovic
body: Hi,

After upgrading Confluence to version 6.14.2 we have the same problem. Import a Word Document into Confluence does not work, there was not option to choose it.

As Jan-Peter suggested, Office Connector Plugin was disabled. After we enabling the plugin, importing works as it should.

Thank you Jan-Peter.

A


author: JP _AC Bielefeld Leader_
body: Hi Jane,

sorry, I just found out that the import was not available anymore in our Confluence environment.

One reason could be, that due to a security advice your admins switched of some Confluence functions which relate to the Word import. You should ask them about this issue \& mention that the "Office Connector Plugin" is propably disabled. They can either fix it or give you some advice.

Enabling that plugin made the "Import Word Document" option available again.

Best

JP


author: JP _AC Bielefeld Leader_
body: Hi,

are you using Confluence server or cloud?

comments: author: Jane Webber
body: I'm not sure - presume server - is there a way of telling?


author: JP _AC Bielefeld Leader_
body: While in **view** mode of any page, click on the**three dots menu** at the top right of the page \& select "Import Word Document"

If you don't see this option, you might not be allowed to create a page in the space you're viewing.
using SumAll in expression builder
Asked by jackie_drury:

Anyone got any examples of using SumAll in expression builder? If you select it from the list of functions, it comes into your expression looking like this: SumAll(source, x=\>x == value). Can not find any information on what this means - can someone please offer an explanation? For my requirement I need the sum of all transactions where the transaction type = 'Interest'. Any one?

Ta


Answers:
author: Shannon S
body: Jackie,

Let's see what we can find out on this.

Can you tell me what exactly you're using when you refer to the expression builder? Are you using a specific add-on for this?

Regards,

Shannon

comments: author: jackie_drury
body: Thanks Shannon - I think that you need to know the technologyone product as words like "expression builder" and SumAll are specific to this product. I came to this community via the technologyone pages and did not realise that I had been taken out to an external community. Thanks anyway


author: Shannon S
body: Jackie,

I see, so this product might have had its documentation hosted on Confluence which then in turn would probably have pointed you to our documentation for help on that product specifically. That's usually how people end up here.

We also have lots of add-ons in Confluence that do similar things as you're mentioning there, so I just wanted to make sure it wasn't something we could help you with.

I hope you find what you're looking for and do let me know if you need a hand.

Regards,

Shannon
Burn down chart
Asked by spiderman:

How to pull Burn down chart into Confluence from Jira?


Answers:
author: Libu B
body: You don't need to use external plugin.You can use the Sprint burndown macro in Confluence to show the burndown chart in Confluence . Before you proceed further, check if you are able to add the Sprint Burndown Macro to your page. If not, you might have to do the following.

If your Jira and Confluence are not linked to each other, then you will have to link that. More info here <https://confluence.atlassian.com/display/DOC/Linking+to+Another+Application>

Once you have linked them, configure the gadget . <https://confluence.atlassian.com/doc/registering-external-gadgets-204050482.html#RegisteringExternalGadgets-Subscribingtoalloftheapplication'sgadgets>

comments: author: spiderman
body: I do not see the 'Sprint burndown' macro in Confluence and 'Application Link' in Jira. Let me know the steps t Spring burndown chart in Jira.


author: Sven Schatter _Lively Apps_
body: You could use [PocketQuery](https://marketplace.atlassian.com/apps/1211199/pocketquery-for-confluence?hosting=server&tab=overview) to execute a JQL query on your Jira and display the results in a chart on a Confluence page.

comments: author: spiderman
body: Is there a way to get the Burn Down chart in Confluence without using plugins/addons?